| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class ConnectionFactory |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Creates a new PDO instance based on the specified database configuration. |
||
| 19 | * |
||
| 20 | * @param array|null $database |
||
| 21 | * @return PDO|null |
||
| 22 | * @throws ConnectionException |
||
| 23 | */ |
||
| 24 | public static function createConnection(?array $database = null): ?PDO |
||
| 49 |