protected function _findFirst(int $tag)
    {
        foreach ($this->_names as $name) {
            if ($name->tag() == $tag) {
                return $name;
            }
        }
        return null;
    }
protected function _findFirst(int $tag)
    {
        foreach ($this->_names as $name) {
            if ($name->tag() == $tag) {
                return $name;
            }
        }
        return null;
    }
protected function _findFirst ( int $ tag ) { foreach ( $ this -> _names as $ name ) { if ( $ name -> tag ( ) == $ tag ) { return $ name ; } } return null ; }
Find first GeneralName by given tag.

@param int $tag
@return GeneralName|null
Find first GeneralName by given tag .