Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
10 | class AbstractBusinessFactory implements FactoryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Xervice\Core\Business\Model\Config\ConfigInterface |
||
14 | */ |
||
15 | protected $config; |
||
16 | |||
17 | /** |
||
18 | * @var \Xervice\Core\Business\Model\Dependency\DependencyContainerInterface |
||
19 | */ |
||
20 | protected $container; |
||
21 | |||
22 | /** |
||
23 | * AbstractBusinessFactory constructor. |
||
24 | * |
||
25 | * @param \Xervice\Core\Business\Model\Config\ConfigInterface $config |
||
26 | * @param \Xervice\Core\Business\Model\Dependency\DependencyContainerInterface $container |
||
27 | */ |
||
28 | 2 | public function __construct(ConfigInterface $config, DependencyContainerInterface $container) |
|
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * @return \Xervice\Core\Business\Model\Config\ConfigInterface |
||
36 | */ |
||
37 | protected function getConfig(): ConfigInterface |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $key |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | protected function getDependency(string $key) |
||
50 | } |
||
51 | } |