| 1 | <?php |
||
| 13 | abstract class CollectionDto implements IteratorAggregate, Countable, ArrayAccess |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | public $items; |
||
| 19 | |||
| 20 | 41 | protected function __construct(string $class, array $items) |
|
| 26 | |||
| 27 | 7 | public function count(): int |
|
| 31 | |||
| 32 | 1 | public function offsetExists($offset) |
|
| 36 | |||
| 37 | 3 | public function offsetGet($offset) |
|
| 41 | |||
| 42 | 1 | public function offsetSet($offset, $value) |
|
| 46 | |||
| 47 | 1 | public function offsetUnset($offset) |
|
| 51 | } |
||
| 52 |