public function removeTagsByName($tagName)
    {
        $this->tags = array_filter(
            $this->tags,
            function (TagInterface $tag) use ($tagName) {
                return $tag->getTagName() !== $tagName;
            }
        );
    }
public function removeTagsByName($tagName)
    {
        $this->tags = array_filter(
            $this->tags,
            function (TagInterface $tag) use ($tagName) {
                return $tag->getTagName() !== $tagName;
            }
        );
    }
public function removeTagsByName ( $ tagName ) { $ this -> tags = array_filter ( $ this -> tags , function ( TagInterface $ tag ) use ( $ tagName ) { return $ tag -> getTagName ( ) !== $ tagName ; } ) ; }
Remove all tags that have a specific name.

@param string $tagName The name of the tag.
Remove all tags that have a specific name .