| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| 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 | public function __construct($promiseFactory = null) |
||
| 24 | { |
||
| 25 | $this->promiseFactory = $promiseFactory; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __invoke(ContainerInterface $container) |
||
| 36 | } |
||
| 37 | |||
| 38 | private function addPromiseFactory(ORM $orm, ContainerInterface $container): ORM |
||
| 52 | } |
||
| 53 | } |
||
| 54 |