/** * Initialize from another AttributeValue. * * This method is generally used to cast UnknownAttributeValue to * specific object when class is declared outside this package. * * @param self $obj Instance of AttributeValue * @return self */ public static function fromSelf(self $obj) { return static::fromASN1($obj->toASN1()->asUnspecified()); }
/** * Generate ASN.1 structure. * * @return Element */ public function toASN1() { return new Sequence($this->_type->toASN1(), $this->_value->toASN1()); }