Total Complexity | 5 |
Total Lines | 44 |
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 | 54 | public function __construct(array $config = [], ?ContainerInterface $parent = null) |
|
31 | 54 | } |
|
32 | |||
33 | /** |
||
34 | * Build an entry of the container by its name. |
||
35 | */ |
||
36 | 3 | public function make(string $name, array $parameters = []) |
|
37 | { |
||
38 | 3 | return $this->container->get($name, $parameters); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get service. |
||
43 | */ |
||
44 | 49 | public function get($name) |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Check if service is registered. |
||
51 | */ |
||
52 | 3 | public function has($name): bool |
|
63 |