1 | <?php |
||
29 | class ResourceIdentifierCollection implements IResourceIdentifierCollection |
||
30 | { |
||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $stack = []; |
||
35 | |||
36 | /** |
||
37 | * @param array $identifiers |
||
38 | */ |
||
39 | public function __construct(array $identifiers = []) |
||
43 | |||
44 | /** |
||
45 | * @param IResourceIdentifier $identifier |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function add(IResourceIdentifier $identifier) : void |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function has(IResourceIdentifier $identifier) : bool |
||
63 | |||
64 | /** |
||
65 | * @param IResourceIdentifier[] $identifiers |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | public function addMany(array $identifiers) : void |
||
80 | |||
81 | /** |
||
82 | * @param array $identifiers |
||
83 | * |
||
84 | * @return void |
||
85 | */ |
||
86 | public function setAll(array $identifiers) : void |
||
91 | |||
92 | /** |
||
93 | * @return void |
||
94 | */ |
||
95 | public function clear() : void |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function getIterator() : \ArrayIterator |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function count() : int |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function isEmpty() : bool |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function isComplete() : bool |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function isOnly($typeOrTypes) : bool |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function map(?array $typeMap = NULL) |
||
175 | |||
176 | /** |
||
177 | * {@inheritdoc} |
||
178 | */ |
||
179 | public function getAll() : array |
||
183 | |||
184 | /** |
||
185 | * {@inheritdoc} |
||
186 | */ |
||
187 | public function getIds() : array |
||
198 | |||
199 | /** |
||
200 | * @param array $input |
||
201 | * |
||
202 | * @return ResourceIdentifierCollection |
||
203 | */ |
||
204 | public static function create(array $input) |
||
214 | } |
||
215 |