public function hasTag(string $name): bool
    {
        /** @var Tag $tag */
        foreach ($this->getTags() as $tag) {
            if ($tag->getName() === $name) {
                return true;
            }
        }

        return false;
    }
public function hasTag(string $name): bool
    {
        /** @var Tag $tag */
        foreach ($this->getTags() as $tag) {
            if ($tag->getName() === $name) {
                return true;
            }
        }

        return false;
    }
public function hasTag ( string $ name ) : bool { /** @var Tag $tag */ foreach ( $ this -> getTags ( ) as $ tag ) { if ( $ tag -> getName ( ) === $ name ) { return true ; } } return false ; }
Checks if a tag of a certain type is present in this DocBlock.

@param string $name Tag name to check for.
Checks if a tag of a certain type is present in this DocBlock .