Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | private static function assertClass(?string $creatorClass): void |
||
33 | { |
||
34 | if ($creatorClass === null) { |
||
35 | return; |
||
36 | } |
||
37 | if (!is_a($creatorClass, ILoopCreator::class, true)) { |
||
38 | throw new InvalidArgument( |
||
39 | sprintf( |
||
40 | 'Creator class must be of "%s" interface.', |
||
41 | ILoopCreator::class |
||
42 | ) |
||
52 |