Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SingletonContainer implements SingletonInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var Container |
||
14 | */ |
||
15 | private $container; |
||
16 | |||
17 | /** |
||
18 | * @var [] |
||
|
|||
19 | */ |
||
20 | private $instances; |
||
21 | |||
22 | public function __construct(Container $container) |
||
23 | { |
||
24 | $this->container = $container; |
||
25 | $this->instances = []; |
||
26 | } |
||
27 | |||
28 | public function getInstance(string $className, array $givenConstructorArguments = []) |
||
35 | } |
||
36 | } |
||
37 |