| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 54.55% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class DatabaseFactory |
||
| 11 | { |
||
| 12 | private static ?Factory $factory = null; |
||
| 13 | |||
| 14 | public function __construct(Factory $factory) |
||
| 15 | { |
||
| 16 | $this->factory = $factory; |
||
| 17 | } |
||
| 18 | |||
| 19 | 2060 | public static function initialize(ContainerInterface $container = null, array $definitions = []): void |
|
| 22 | 2060 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Creates a Class defined by config passed. |
||
| 26 | * |
||
| 27 | * @param array $config parameters for creating a class. |
||
| 28 | * |
||
| 29 | * @throws \RuntimeException if factory was not initialized |
||
| 30 | * |
||
| 31 | * @return object |
||
| 32 | */ |
||
| 33 | 19 | public static function createClass(array $config): object |
|
| 44 |