src/Entities/Products/Product.php
public function getTagByType($tagType)
    {
        foreach ($this->getTags() as $tag) {
            if ($tag->isType($tagType)) {
                return $tag;
            }
        }

        return null;
    }
public function getTagByType($tagType)
    {
        foreach ($this->getTags() as $tag) {
            if ($tag->isType($tagType)) {
                return $tag;
            }
        }

        return null;
    }
@param string $tagType

@return ProductTag|null