| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function handleShipDestruction( |
||
| 20 | ?ShipDestroyerInterface $destroyer, |
||
| 21 | ShipWrapperInterface $destroyedShipWrapper, |
||
| 22 | ShipDestructionCauseEnum $cause, |
||
| 23 | InformationInterface $informations |
||
| 24 | ): void { |
||
| 25 | |||
| 26 | $ship = $destroyedShipWrapper->get(); |
||
| 27 | |||
| 28 | $this->entryCreator->addEntry( |
||
| 29 | $cause->getHistoryEntryText($destroyer, $ship), |
||
| 30 | $destroyer === null ? UserEnum::USER_NOONE : $destroyer->getUser()->getId(), |
||
| 31 | $ship |
||
| 32 | ); |
||
| 35 |