1 | <?php |
||
8 | class Container implements ContainerInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var \ArrayObject |
||
13 | */ |
||
14 | private $services; |
||
15 | |||
16 | /** |
||
17 | * @param int|string $id |
||
18 | * @return int|string|array|object |
||
19 | * @throws NotFoundException |
||
20 | */ |
||
21 | 9 | public function get($id) |
|
28 | |||
29 | /** |
||
30 | * @param int|string $id |
||
31 | * @return boolean |
||
32 | */ |
||
33 | 12 | public function has($id) |
|
40 | |||
41 | /** |
||
42 | * @param string $id |
||
43 | * @param id|string|array|object $arguments |
||
44 | * @throws ContainerException |
||
45 | */ |
||
46 | 9 | public function add($id, $arguments) |
|
54 | } |
||
55 |