1 | <?php |
||
8 | class FilteredCollection extends AbstractCollection implements MutationObject |
||
9 | { |
||
10 | use MutationObjectHandler; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $config; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | protected $hasChanged = false; |
||
21 | |||
22 | 84 | public function __construct(array $arguments = [], array $config = [], bool $hasChanged = false) |
|
29 | |||
30 | 24 | public function set(array $data): void |
|
36 | |||
37 | 44 | public function jsonSerialize(): array |
|
52 | |||
53 | 2 | public function remove(Item $item): bool |
|
69 | |||
70 | 22 | protected function buildFilteredCollection($items) |
|
74 | |||
75 | 38 | protected function buildSubCollection(array $items, string $key) |
|
79 | } |
||
80 |