| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 1 | public function getDestructionCause(): ShipDestructionCauseEnum |
|
| 31 | { |
||
| 32 | 1 | return match ($this) { |
|
| 33 | 1 | self::SHIP_FIGHT => ShipDestructionCauseEnum::SHIP_FIGHT, |
|
| 34 | 1 | self::ALERT_YELLOW => ShipDestructionCauseEnum::ALERT_YELLOW, |
|
| 35 | 1 | self::ALERT_RED => ShipDestructionCauseEnum::ALERT_RED, |
|
| 36 | 1 | self::COLONY_DEFENSE => ShipDestructionCauseEnum::SHIP_FIGHT, |
|
| 37 | 1 | self::ACTIVATE_TRACTOR => ShipDestructionCauseEnum::SHIP_FIGHT, |
|
| 38 | 1 | self::BOARD_SHIP => ShipDestructionCauseEnum::SHIP_FIGHT, |
|
| 39 | 1 | self::THOLIAN_WEB_REFLECTION => ShipDestructionCauseEnum::SHIP_FIGHT |
|
| 40 | 1 | }; |
|
| 43 |