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) |
|
35 | 26 | } |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | * |
||
40 | * @return self |
||
41 | */ |
||
42 | 13 | public static function fromChosenASN1(UnspecifiedType $el): GeneralName |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function string(): string |
||
51 | 3 | { |
|
52 | return $this->_name; |
||
53 | 3 | } |
|
54 | |||
55 | /** |
||
56 | * Get DNS name. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function name(): string |
||
61 | 4 | { |
|
62 | return $this->_name; |
||
63 | 4 | } |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | protected function _choiceASN1(): TaggedType |
||
71 | } |
||
72 | } |
||
73 |