public function equals(Target $other): bool
    {
        if ($this->_type != $other->_type) {
            return false;
        }
        if ($this->toASN1()->toDER() != $other->toASN1()->toDER()) {
            return false;
        }
        return true;
    }
public function equals(Target $other): bool
    {
        if ($this->_type != $other->_type) {
            return false;
        }
        if ($this->toASN1()->toDER() != $other->toASN1()->toDER()) {
            return false;
        }
        return true;
    }
public function equals ( Target $ other ) : bool { if ( $ this -> _type != $ other -> _type ) { return false ; } if ( $ this -> toASN1 ( ) -> toDER ( ) != $ other -> toASN1 ( ) -> toDER ( ) ) { return false ; } return true ; }
Check whether target is equal to another.

@param Target $other
@return bool
Check whether target is equal to another .