| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SingletonBattleParty extends AbstractBattleParty |
||
| 9 | { |
||
| 10 | private bool $isBase; |
||
| 11 | |||
| 12 | public function __construct( |
||
| 13 | ShipWrapperInterface $leader |
||
| 14 | ) { |
||
| 15 | parent::__construct($leader); |
||
| 16 | |||
| 17 | $this->isBase = $leader->get()->isBase(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function initMembers(): Collection |
||
| 21 | { |
||
| 22 | return $this->createSingleton($this->leader); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function isBase(): bool |
||
| 28 | } |
||
| 29 | } |
||
| 30 |