1 | <?php |
||
19 | abstract class DistributionPointName |
||
20 | { |
||
21 | const TAG_FULL_NAME = 0; |
||
22 | const TAG_RDN = 1; |
||
23 | |||
24 | /** |
||
25 | * Type. |
||
26 | * |
||
27 | * @var int $_tag |
||
28 | */ |
||
29 | protected $_tag; |
||
30 | |||
31 | /** |
||
32 | * Generate ASN.1 element. |
||
33 | * |
||
34 | * @return Element |
||
35 | */ |
||
36 | abstract protected function _valueASN1(); |
||
37 | |||
38 | /** |
||
39 | * Initialize from TaggedType. |
||
40 | * |
||
41 | * @param TaggedType $el |
||
42 | * @throws \UnexpectedValueException |
||
43 | * @return self |
||
44 | */ |
||
45 | 15 | public static function fromTaggedType(TaggedType $el): self |
|
60 | |||
61 | /** |
||
62 | * Get type tag. |
||
63 | * |
||
64 | * @return int |
||
65 | */ |
||
66 | 7 | public function tag(): int |
|
70 | |||
71 | /** |
||
72 | * Generate ASN.1 structure. |
||
73 | * |
||
74 | * @return ImplicitlyTaggedType |
||
75 | */ |
||
76 | 20 | public function toASN1(): ImplicitlyTaggedType |
|
80 | } |
||
81 |