1 | <?php |
||
11 | class NamedCollection implements \IteratorAggregate, NamedCollectionInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $collection = array(); |
||
17 | |||
18 | /** |
||
19 | * @see MetaborStd.NamedCollectionInterface::add() |
||
20 | */ |
||
21 | public function add(NamedInterface $object) |
||
25 | |||
26 | /** |
||
27 | * @see MetaborStd.NamedCollectionInterface::get() |
||
28 | */ |
||
29 | public function get($name) |
||
33 | |||
34 | /** |
||
35 | * @see MetaborStd.NamedCollectionInterface::getNames() |
||
36 | */ |
||
37 | public function getNames() |
||
41 | |||
42 | /** |
||
43 | * @see MetaborStd.NamedCollectionInterface::has() |
||
44 | */ |
||
45 | public function has($name) |
||
49 | |||
50 | /** |
||
51 | * @see \IteratorAggregate::getIterator() |
||
52 | */ |
||
53 | public function getIterator() |
||
57 | } |
||
58 |