Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Container implements ContainerInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $entries = []; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function get($id) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function has($id) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Add entry to container |
||
44 | * |
||
45 | * @param string $id |
||
46 | * @param mixed $entry |
||
47 | * |
||
48 | * @return Container |
||
49 | */ |
||
50 | public function add($id, $entry) |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Delete entry in container |
||
63 | * |
||
64 | * @param string $id |
||
65 | * |
||
66 | * @return Container |
||
67 | */ |
||
68 | public function delete($id) |
||
79 |