| 1 | <?php |
||
| 12 | class ReadonlyCollection implements CollectionReadInterface |
||
| 13 | { |
||
| 14 | use CollectionReadTrait; |
||
| 15 | |||
| 16 | private $collection; |
||
| 17 | private $data; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Constructor. |
||
| 21 | * |
||
| 22 | * @param CollectionReadInterface $collection wrapped collection |
||
| 23 | */ |
||
| 24 | 9 | public function __construct(CollectionReadInterface $collection) |
|
| 28 | |||
| 29 | 1 | protected function createCollection(array $items) |
|
| 33 | |||
| 34 | 9 | protected function &items() |
|
| 40 | } |
||
| 41 |