Passed
Pull Request — master (#1819)
by Nico
52:14 queued 25:19
created

MixedBattleParty::initMembers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Stu\Module\Ship\Lib\Battle\Party;
4
5
use Doctrine\Common\Collections\Collection;
6
use Stu\Module\Ship\Lib\ShipWrapperInterface;
7
8
class MixedBattleParty extends AbstractBattleParty
9
{
10
    /** @param Collection<int, ShipWrapperInterface> $wrappers */
11
    public function __construct(
12
        private Collection $wrappers
13
    ) {
14
        parent::__construct($wrappers->first());
15
    }
16
17
    public function initMembers(): Collection
18
    {
19
        return $this->wrappers;
20
    }
21
}
22