| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Matchup |
||
| 12 | { |
||
| 13 | 5 | public function __construct( |
|
| 14 | private RoundBasedBattleParty $battleParty, |
||
| 15 | private BattlePartyInterface $targetParty |
||
| 16 | 5 | ) {} |
|
| 17 | |||
| 18 | 3 | public function getAttacker(): SpacecraftWrapperInterface |
|
| 19 | { |
||
| 20 | 3 | return $this->battleParty->getRandomUnused(); |
|
| 21 | } |
||
| 22 | |||
| 23 | 5 | public function getDefenders(): BattlePartyInterface |
|
| 26 | } |
||
| 27 | |||
| 28 | public function isAttackingShieldsOnly(): bool |
||
| 31 | } |
||
| 32 | } |
||
| 33 |