| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | #[\Override] |
||
| 19 | public function handleSpacecraftDestruction( |
||
| 20 | ?SpacecraftDestroyerInterface $destroyer, |
||
| 21 | SpacecraftWrapperInterface $destroyedSpacecraftWrapper, |
||
| 22 | SpacecraftDestructionCauseEnum $cause, |
||
| 23 | InformationInterface $informations |
||
| 24 | ): void { |
||
| 25 | |||
| 26 | $tractoredShipWrapper = $destroyedSpacecraftWrapper->getTractoredShipWrapper(); |
||
| 27 | if ($tractoredShipWrapper !== null) { |
||
| 28 | |||
| 29 | $this->spacecraftSystemManager->deactivate($destroyedSpacecraftWrapper, SpacecraftSystemTypeEnum::TRACTOR_BEAM, true); |
||
| 30 | } |
||
| 33 |