models/BaseDoc.php
public function getFirstTag($name)
    {
        foreach ($this->tags as $i => $tag) {
            if (strtolower($tag->getName()) == $name) {
                return $this->tags[$i];
            }
        }

        return null;
    }
public function getFirstTag($name)
    {
        foreach ($this->tags as $i => $tag) {
            if (strtolower($tag->getName()) == $name) {
                return $this->tags[$i];
            }
        }

        return null;
    }
public function getFirstTag ( $ name ) { foreach ( $ this -> tags as $ i => $ tag ) { if ( strtolower ( $ tag -> getName ( ) ) == $ name ) { return $ this -> tags [ $ i ] ; } } return null ; }
Get the first tag of a given name
@param string $name tag name.
@return Tag|null tag instance, `null` if not found.
@since 2.0.5
Get the first tag of a given name