Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | #[Entity] |
||
12 | class SpacecraftCountData extends AbstractData |
||
13 | { |
||
14 | #[Column(type: 'integer')] |
||
15 | private int $spacecraftcount = 0; |
||
16 | #[Column(type: 'integer')] |
||
17 | private int $cloakcount = 0; |
||
18 | |||
19 | /** @var null|array<string> */ |
||
20 | #[Column(type: 'json', nullable: true)] |
||
21 | private ?array $effects = null; |
||
22 | |||
23 | 4 | public function getSpacecraftCount(): int |
|
26 | } |
||
27 | |||
28 | 4 | public function hasCloakedShips(): bool |
|
29 | { |
||
30 | 4 | return $this->cloakcount > 0; |
|
31 | } |
||
32 | |||
33 | 4 | public function isEnabled(): bool |
|
37 | } |
||
38 | |||
39 | 4 | public function isDubious(): bool |
|
43 | } |
||
44 | } |
||
45 |