| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function getAttackCause(): ShipAttackCauseEnum |
||
| 39 | { |
||
| 40 | return match ($this) { |
||
| 41 | ShipAlertStateEnum::ALERT_GREEN => throw new RuntimeException('this should not happen'), |
||
| 42 | ShipAlertStateEnum::ALERT_YELLOW => ShipAttackCauseEnum::ALERT_YELLOW, |
||
| 43 | ShipAlertStateEnum::ALERT_RED => ShipAttackCauseEnum::ALERT_RED |
||
| 44 | }; |
||
| 47 |