1 | <?php |
||
11 | abstract class DataTransferObjectCollection implements |
||
12 | ArrayAccess, |
||
13 | Iterator, |
||
14 | Countable |
||
15 | { |
||
16 | /** @var array */ |
||
17 | protected $collection; |
||
18 | |||
19 | /** @var int */ |
||
20 | protected $position = 0; |
||
21 | |||
22 | public function __construct(array $collection = []) |
||
26 | |||
27 | public function current() |
||
31 | |||
32 | public function offsetGet($offset) |
||
36 | |||
37 | public function offsetSet($offset, $value) |
||
45 | |||
46 | public function offsetExists($offset): bool |
||
50 | |||
51 | public function offsetUnset($offset) |
||
55 | |||
56 | public function next() |
||
60 | |||
61 | public function key(): int |
||
65 | |||
66 | public function valid(): bool |
||
70 | |||
71 | public function rewind() |
||
75 | |||
76 | public function toArray(): array |
||
93 | |||
94 | public function items(): array |
||
98 | |||
99 | public function count(): int |
||
103 | } |
||
104 |