Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public static function getClassName(string $key): string |
||
27 | { |
||
28 | $aliases = array_merge(static::getDefaultAliases(), static::getAliases()); |
||
29 | if (!isset($aliases[$key])) { |
||
30 | throw new \Exception( |
||
31 | sprintf(static::ERROR_INEXISTANT_KEY, $key) |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | return $aliases[$key]; |
||
36 | } |
||
45 |