| 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 | 29 | public function add(NamedInterface $object) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @see MetaborStd.NamedCollectionInterface::get() |
||
| 28 | */ |
||
| 29 | 12 | public function get($name) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @see MetaborStd.NamedCollectionInterface::getNames() |
||
| 36 | */ |
||
| 37 | 6 | public function getNames() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @see MetaborStd.NamedCollectionInterface::has() |
||
| 44 | */ |
||
| 45 | 22 | public function has($name) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @see \IteratorAggregate::getIterator() |
||
| 52 | */ |
||
| 53 | 12 | public function getIterator() |
|
| 57 | } |
||
| 58 |