1 | <?php |
||
17 | class DNSName extends GeneralName |
||
18 | { |
||
19 | /** |
||
20 | * DNS name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_name; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $name Domain name |
||
30 | */ |
||
31 | 26 | public function __construct(string $name) |
|
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param UnspecifiedType $el |
||
40 | * @return self |
||
41 | */ |
||
42 | 13 | public static function fromChosenASN1(UnspecifiedType $el): self |
|
46 | |||
47 | /** |
||
48 | * |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 3 | public function string(): string |
|
55 | |||
56 | /** |
||
57 | * Get DNS name. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | 4 | public function name(): string |
|
65 | |||
66 | /** |
||
67 | * |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 24 | protected function _choiceASN1(): TaggedType |
|
74 | } |
||
75 |