Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 26.67% |
Changes | 0 |
1 | <?php |
||
13 | abstract class AbstractSystemData |
||
14 | { |
||
15 | protected ShipInterface $ship; |
||
16 | |||
17 | 5 | public function __construct( |
|
18 | private ShipSystemRepositoryInterface $shipSystemRepository, |
||
19 | private StatusBarFactoryInterface $statusBarFactory |
||
20 | 5 | ) {} |
|
21 | |||
22 | 3 | public function setShip(ShipInterface $ship): void |
|
25 | } |
||
26 | |||
27 | abstract public function getSystemType(): ShipSystemTypeEnum; |
||
28 | |||
29 | /** |
||
30 | * updates the system metadata for this specific ship system |
||
31 | */ |
||
32 | public function update(): void |
||
37 | } |
||
38 | |||
39 | protected function getStatusBar(string $label, int $value, int $maxValue, string $color): StatusBarInterface |
||
49 |