public function removeTag(Tag $tagToRemove): void
    {
        foreach ($this->tags as $key => $tag) {
            if ($tag === $tagToRemove) {
                unset($this->tags[$key]);
                break;
            }
        }
    }
public function removeTag(Tag $tagToRemove): void
    {
        foreach ($this->tags as $key => $tag) {
            if ($tag === $tagToRemove) {
                unset($this->tags[$key]);
                break;
            }
        }
    }
public function removeTag ( Tag $ tagToRemove ) : void { foreach ( $ this -> tags as $ key => $ tag ) { if ( $ tag === $ tagToRemove ) { unset ( $ this -> tags [ $ key ] ) ; break ; } } }
Remove a tag from this DocBlock.

@param Tag $tagToRemove The tag to remove.
Remove a tag from this DocBlock .