Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class UniformResourceIdentifier extends GeneralName |
||
18 | { |
||
19 | /** |
||
20 | * URI. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_uri; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $uri |
||
30 | */ |
||
31 | 62 | public function __construct(string $uri) |
|
32 | { |
||
33 | 62 | $this->_tag = self::TAG_URI; |
|
34 | 62 | $this->_uri = $uri; |
|
35 | 62 | } |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | * |
||
40 | * @return self |
||
41 | */ |
||
42 | 34 | public static function fromChosenASN1(UnspecifiedType $el): GeneralName |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 15 | public function string(): string |
|
51 | { |
||
52 | 15 | return $this->_uri; |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * Get URI. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | 5 | public function uri(): string |
|
61 | { |
||
62 | 5 | return $this->_uri; |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 53 | protected function _choiceASN1(): TaggedType |
|
71 | } |
||
72 | } |
||
73 |