public function lastTag(string $name)
    {
        $lastTag = null;

        foreach ($this->tags as $tag) {
            if ($tag->name == $name) {
                $lastTag = $tag;
            }
        }

        return $lastTag;
    }
public function lastTag(string $name)
    {
        $lastTag = null;

        foreach ($this->tags as $tag) {
            if ($tag->name == $name) {
                $lastTag = $tag;
            }
        }

        return $lastTag;
    }
public function lastTag ( string $ name ) { $ lastTag = null ; foreach ( $ this -> tags as $ tag ) { if ( $ tag -> name == $ name ) { $ lastTag = $ tag ; } } return $ lastTag ; }
Returns the last tag in the lists of tags with matching name

@param  string            $name The name of the tag
@return OpenGraphTag|null       Returns the tag object or null
Returns the last tag in the lists of tags with matching name