| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | 499 | public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadConfig $config = null): bool  | 
            |
| 17 |     { | 
            ||
| 18 | 499 |         if (!\is_string($bootloader)) { | 
            |
| 19 | 3 | return true;  | 
            |
| 20 | }  | 
            ||
| 21 | |||
| 22 | 498 |         if (!\class_exists($bootloader)) { | 
            |
| 23 | 2 |             throw new ClassNotFoundException(\sprintf('Bootloader class `%s` is not exist.', $bootloader)); | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | 496 | return true;  | 
            |
| 27 | }  | 
            ||
| 29 |