| Total Complexity | 6 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AttackingBattleParty extends AbstractBattleParty |
||
| 10 | { |
||
| 11 | 4 | public function __construct( |
|
| 12 | private ShipWrapperInterface|FleetWrapperInterface $wrapper |
||
| 13 | ) { |
||
| 14 | 4 | $leader = $wrapper instanceof ShipWrapperInterface ? $wrapper : $wrapper->getLeadWrapper(); |
|
| 15 | |||
| 16 | 4 | parent::__construct($leader); |
|
| 17 | } |
||
| 18 | |||
| 19 | 4 | public function initMembers(): Collection |
|
| 32 | } |
||
| 33 | } |
||
| 35 |