Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 15 | public static function new(string $unknownDriverName, array $knownDrivers) : self |
|
16 | { |
||
17 | 15 | return new self( |
|
18 | 15 | sprintf( |
|
19 | 15 | "The given 'driver' %s is unknown, Doctrine currently supports only the following drivers: %s", |
|
20 | 15 | $unknownDriverName, |
|
21 | 15 | implode(', ', $knownDrivers) |
|
22 | ) |
||
26 |