1 | <?php |
||
13 | class Collection implements ICollection, ArrayAccess, IteratorAggregate, Countable |
||
14 | { |
||
15 | protected $items = []; |
||
16 | |||
17 | protected $totalMatches = 0; |
||
18 | |||
19 | |||
20 | 21 | public function __construct(array $items = [], int $totalMatches = 0) |
|
30 | |||
31 | |||
32 | 2 | public function offsetExists($offset) |
|
36 | |||
37 | |||
38 | 1 | public function offsetGet($offset) |
|
46 | |||
47 | |||
48 | 2 | protected function immutable() |
|
52 | |||
53 | |||
54 | 1 | public function offsetSet($offset, $value) |
|
58 | |||
59 | |||
60 | 1 | public function offsetUnset($offset) |
|
64 | |||
65 | |||
66 | 1 | public function getIterator() |
|
70 | |||
71 | |||
72 | 3 | public function count() |
|
76 | |||
77 | |||
78 | 1 | public function totalCount() |
|
82 | |||
83 | } |
||
84 |