1 | <?php |
||
13 | class CollectionItem implements CreatableFromArray |
||
14 | { |
||
15 | /** |
||
16 | * @var Item[] |
||
17 | */ |
||
18 | private $items; |
||
19 | |||
20 | /** |
||
21 | * @param Item[] $items |
||
22 | */ |
||
23 | 1 | private function __construct(array $items) |
|
32 | |||
33 | 1 | public static function createFromArray(array $data) |
|
44 | |||
45 | /** |
||
46 | * @return Item[] |
||
47 | */ |
||
48 | public function getItems() |
||
52 | } |
||
53 |