| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AbstractCommunicationFactory 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 | 1 | public function __construct(ConfigInterface $config, DependencyContainerInterface $container) |
|
| 29 | { |
||
| 30 | 1 | $this->config = $config; |
|
| 31 | 1 | $this->container = $container; |
|
| 32 | 1 | } |
|
| 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 | } |