| 1 | <?php |
||
| 12 | class UnknownExtension extends Extension |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Decoded extension value. |
||
| 16 | * |
||
| 17 | * @var Element|null |
||
| 18 | */ |
||
| 19 | protected $_element; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Raw extension value. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $_data; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor. |
||
| 30 | * |
||
| 31 | * @param string $oid |
||
| 32 | * @param bool $critical |
||
| 33 | * @param Element $element |
||
| 34 | */ |
||
| 35 | 7 | public function __construct(string $oid, bool $critical, Element $element) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Create instance from a raw encoded extension value. |
||
| 44 | * |
||
| 45 | * @param string $oid |
||
| 46 | * @param bool $critical |
||
| 47 | * @param string $data |
||
| 48 | * @return self |
||
| 49 | */ |
||
| 50 | 2 | public static function fromRawString(string $oid, bool $critical, |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Get the encoded extension value. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 2 | public function extensionValue(): string |
|
| 68 | |||
| 69 | /** |
||
| 70 | * |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 2 | protected function _extnValue(): OctetString |
|
| 77 | |||
| 78 | /** |
||
| 79 | * |
||
| 80 | * {@inheritdoc} |
||
| 81 | */ |
||
| 82 | 2 | protected function _valueASN1(): Element |
|
| 89 | } |
||
| 90 |