| Total Complexity | 8 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ConstructionProgressWrapper |
||
| 10 | { |
||
| 11 | public function __construct( |
||
| 12 | private ConstructionProgressInterface $progress, |
||
| 13 | private StationInterface $station, |
||
| 14 | private int $dockedWorbeeCount, |
||
| 15 | private int $neededWorbeeCount |
||
| 16 | ) {} |
||
| 17 | |||
| 18 | public function isUnderConstruction(): bool |
||
| 19 | { |
||
| 20 | return $this->station->getState() == SpacecraftStateEnum::SHIP_STATE_UNDER_CONSTRUCTION; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function isScrapped(): bool |
||
| 24 | { |
||
| 25 | return $this->station->getState() == SpacecraftStateEnum::SHIP_STATE_UNDER_SCRAPPING; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getRemainingTicks(): int |
||
| 29 | { |
||
| 30 | return $this->progress->getRemainingTicks(); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getDockedWorkbeeCount(): int |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getNeededWorkbeeCount(): int |
||
| 39 | { |
||
| 40 | return $this->neededWorbeeCount; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getWorkbeeColor(): string |
||
| 46 | } |
||
| 47 | } |
||
| 48 |