1 | <?php |
||
9 | abstract class ValueObjectCollection implements |
||
10 | ArrayAccess, |
||
11 | Iterator, |
||
12 | Countable |
||
13 | { |
||
14 | /** @var array */ |
||
15 | protected $collection; |
||
16 | |||
17 | /** @var int */ |
||
18 | protected $position = 0; |
||
19 | |||
20 | public function __construct(array $collection = []) |
||
24 | |||
25 | public function current() |
||
29 | |||
30 | public function offsetGet($offset) |
||
34 | |||
35 | public function offsetSet($offset, $value) |
||
43 | |||
44 | public function offsetExists($offset) |
||
48 | |||
49 | public function offsetUnset($offset) |
||
53 | |||
54 | public function next() |
||
58 | |||
59 | public function key() |
||
63 | |||
64 | public function valid() |
||
68 | |||
69 | public function rewind() |
||
73 | |||
74 | public function toArray(): array |
||
78 | |||
79 | public function count(): int |
||
83 | } |
||
84 |