Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class CPSQualifier extends PolicyQualifierInfo |
||
18 | { |
||
19 | /** |
||
20 | * URI. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_uri; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $uri |
||
30 | */ |
||
31 | 16 | public function __construct(string $uri) |
|
35 | 16 | } |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | * |
||
40 | * @return self |
||
41 | */ |
||
42 | 12 | public static function fromQualifierASN1(UnspecifiedType $el): PolicyQualifierInfo |
|
43 | { |
||
44 | 12 | return new self($el->asString()->string()); |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Get URI. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | 3 | public function uri(): string |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 18 | protected function _qualifierASN1(): Element |
|
63 | } |
||
64 | } |
||
65 |