| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected static function guardAgainstInvalidPathGenerator(string $pathGeneratorClass) |
||
| 25 | { |
||
| 26 | if (! class_exists($pathGeneratorClass)) { |
||
| 27 | throw InvalidPathGenerator::doesntExist($pathGeneratorClass); |
||
| 28 | } |
||
| 29 | |||
| 30 | if (! is_subclass_of($pathGeneratorClass, PathGenerator::class)) { |
||
|
|
|||
| 31 | throw InvalidPathGenerator::isntAPathGenerator($pathGeneratorClass); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 |