public function equals(GeneralName $other): bool
    {
        if ($this->_tag != $other->_tag) {
            return false;
        }
        if ($this->_choiceASN1()->toDER() != $other->_choiceASN1()->toDER()) {
            return false;
        }
        return true;
    }
public function equals(GeneralName $other): bool
    {
        if ($this->_tag != $other->_tag) {
            return false;
        }
        if ($this->_choiceASN1()->toDER() != $other->_choiceASN1()->toDER()) {
            return false;
        }
        return true;
    }
public function equals ( GeneralName $ other ) : bool { if ( $ this -> _tag != $ other -> _tag ) { return false ; } if ( $ this -> _choiceASN1 ( ) -> toDER ( ) != $ other -> _choiceASN1 ( ) -> toDER ( ) ) { return false ; } return true ; }
Check whether GeneralName is equal to other.

@param GeneralName $other GeneralName to compare to
@return boolean True if names are equal
Check whether GeneralName is equal to other .