| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 8 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 4 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 18 | 500 | public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadConfig $config = null): bool  | 
            |
| 19 |     { | 
            ||
| 20 | 500 | $ref = new \ReflectionClass($bootloader);  | 
            |
| 21 | |||
| 22 | 500 | return !$this->bootloaders->isBooted($ref->getName())  | 
            |
| 23 | 500 | && !$ref->isAbstract()  | 
            |
| 24 | 500 | && !$ref->isInterface()  | 
            |
| 25 | 500 | && $ref->implementsInterface(BootloaderInterface::class);  | 
            |
| 26 | }  | 
            ||
| 28 |