Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class OrmFactory |
||
15 | { |
||
16 | /** @var null|PromiseFactoryInterface|string */ |
||
17 | private $promiseFactory = null; |
||
18 | |||
19 | /** |
||
20 | * OrmFactory constructor. |
||
21 | * @param null|PromiseFactoryInterface|string $promiseFactory |
||
22 | */ |
||
23 | 6 | public function __construct($promiseFactory = null) |
|
24 | { |
||
25 | 6 | $this->promiseFactory = $promiseFactory; |
|
26 | 6 | } |
|
27 | |||
28 | 6 | public function __invoke(ContainerInterface $container) |
|
36 | } |
||
37 | |||
38 | 6 | private function addPromiseFactory(ORM $orm, ContainerInterface $container): ORM |
|
52 | } |
||
53 | } |
||
54 |