1 | <?php |
||
7 | class PlaceCollection implements \IteratorAggregate |
||
8 | { |
||
9 | /** |
||
10 | * @var Place[] |
||
11 | */ |
||
12 | private $places = []; |
||
13 | |||
14 | /** |
||
15 | * @param Place[] $places |
||
16 | */ |
||
17 | public function __construct(array $places = []) |
||
21 | |||
22 | /** |
||
23 | * @param Place $place |
||
24 | * |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function addPlace(Place $place) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function getIterator() |
||
41 | } |
||
42 |