Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class Factory |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $className; |
||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | private $dependencies; |
||
19 | |||
20 | 9 | public function __construct(string $className, string ...$dependencies) |
|
21 | { |
||
22 | 9 | $this->className = $className; |
|
23 | 9 | $this->dependencies = $dependencies; |
|
24 | 9 | } |
|
25 | |||
26 | /** |
||
27 | * @param ContainerInterface $container |
||
28 | * @return mixed |
||
29 | */ |
||
30 | 9 | public function __invoke(ContainerInterface $container) |
|
37 | } |
||
38 | } |
||
39 |