| 1 | <?php |
||
| 14 | class Collection implements ArrayAccess, Countable, IteratorAggregate |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Model[] |
||
| 18 | */ |
||
| 19 | private $models; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Model[] $models |
||
| 23 | */ |
||
| 24 | public function __construct(array $models) |
||
| 28 | |||
| 29 | public function getIterator() |
||
| 33 | |||
| 34 | public function offsetExists($offset) |
||
| 38 | |||
| 39 | public function offsetGet($offset) |
||
| 43 | |||
| 44 | public function offsetSet($offset, $value) |
||
| 49 | |||
| 50 | public function offsetUnset($offset) |
||
| 55 | |||
| 56 | public function count() |
||
| 60 | } |
||
| 61 |