1 | <?php |
||
16 | class AuthorityInformationAccessExtension extends Extension implements |
||
17 | \Countable, |
||
18 | \IteratorAggregate |
||
19 | { |
||
20 | /** |
||
21 | * Access descriptions. |
||
22 | * |
||
23 | * @var AuthorityAccessDescription[] |
||
24 | */ |
||
25 | private $_accessDescriptions; |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param bool $critical |
||
31 | * @param AuthorityAccessDescription ...$access |
||
32 | */ |
||
33 | 10 | public function __construct(bool $critical, |
|
39 | |||
40 | /** |
||
41 | * |
||
42 | * {@inheritdoc} |
||
43 | * @return self |
||
44 | */ |
||
45 | 9 | protected static function _fromDER(string $data, bool $critical): self |
|
53 | |||
54 | /** |
||
55 | * Get the access descriptions. |
||
56 | * |
||
57 | * @return AuthorityAccessDescription[] |
||
58 | */ |
||
59 | 1 | public function accessDescriptions(): array |
|
63 | |||
64 | /** |
||
65 | * |
||
66 | * {@inheritdoc} |
||
67 | * @return Sequence |
||
68 | */ |
||
69 | 15 | protected function _valueASN1(): Sequence |
|
77 | |||
78 | /** |
||
79 | * Get the number of access descriptions. |
||
80 | * |
||
81 | * @see \Countable::count() |
||
82 | * @return int |
||
83 | */ |
||
84 | 1 | public function count(): int |
|
88 | |||
89 | /** |
||
90 | * Get iterator for access descriptions. |
||
91 | * |
||
92 | * @see \IteratorAggregate::getIterator() |
||
93 | * @return \ArrayIterator List of AuthorityAccessDescription objects |
||
94 | */ |
||
95 | 1 | public function getIterator(): \ArrayIterator |
|
99 | } |
||
100 |