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