Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Container implements ContainerInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var \Psr\Container\ContainerInterface |
||
18 | */ |
||
19 | protected $container; |
||
20 | |||
21 | /** |
||
22 | * Initializes the container instance. |
||
23 | * |
||
24 | * @param \Psr\Container\ContainerInterface $container |
||
25 | */ |
||
26 | 6 | public function __construct(PsrContainerInterface $container) |
|
29 | 6 | } |
|
30 | |||
31 | /** |
||
32 | * Finds an entry of the container by its identifier and returns it. |
||
33 | * |
||
34 | * @param string $id |
||
35 | * @return mixed |
||
36 | */ |
||
37 | 6 | public function get($id) |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Returns true if the container can return an entry for the given identifier. |
||
44 | * |
||
45 | * @param string $id |
||
46 | * @return boolean |
||
47 | */ |
||
48 | 6 | public function has($id) |
|
53 |