| 1 | <?php |
||
| 13 | class ComponentContainer implements ContainerInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var object[] |
||
| 17 | */ |
||
| 18 | protected $storedComponents = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ComponentInterface $object $object |
||
| 22 | * |
||
| 23 | * @throws ContainerException |
||
| 24 | */ |
||
| 25 | 2 | public function add(ComponentInterface $object) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | 4 | public function get($id) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | * @throws ContainerException |
||
| 52 | */ |
||
| 53 | 4 | public function has($id) |
|
| 60 | } |