Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class Container implements ContainerInterface |
||
17 | { |
||
18 | /** |
||
19 | * Container. |
||
20 | * |
||
21 | * @var RuntimeContainer |
||
22 | */ |
||
23 | protected $container; |
||
24 | |||
25 | /** |
||
26 | * Create container. |
||
27 | * |
||
28 | * @param iterable $config |
||
29 | * @param ContainerInterface $parent |
||
30 | */ |
||
31 | 47 | public function __construct(Iterable $config = [], ?ContainerInterface $parent = null) |
|
34 | 47 | } |
|
35 | |||
36 | /** |
||
37 | * Get service. |
||
38 | * |
||
39 | * @param string $name |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 45 | public function get($name) |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * Check if service is registered. |
||
50 | * |
||
51 | * @param string $name |
||
52 | * |
||
53 | * @return bool |
||
54 | */ |
||
55 | 3 | public function has($name): bool |
|
66 |