| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | private function getClassNameFromConfig(string $className): string |
||
| 42 | { |
||
| 43 | if ($className !== 'default') { |
||
| 44 | if (!is_a($className, Factory::class, true)) { |
||
| 45 | throw new ConfigurationException( |
||
| 46 | sprintf('%s does not extend %s', $className, Factory::class) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | return $className; |
||
| 50 | } |
||
| 51 | return Factory::class; |
||
| 52 | } |
||
| 54 |