| Total Complexity | 11 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 78.95% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AstroStateWrapper |
||
| 8 | { |
||
| 9 | 2 | public function __construct(private AstronomicalMappingStateEnum $state, private ?int $turnsLeft, private bool $isSystem, private ?int $measurementpointsleft) {} |
|
| 10 | |||
| 11 | 2 | public function isPlannable(): bool |
|
| 12 | { |
||
| 13 | 2 | return $this->state === AstronomicalMappingStateEnum::PLANNABLE; |
|
| 14 | } |
||
| 15 | 1 | public function isPlanned(): bool |
|
| 16 | { |
||
| 17 | 1 | return $this->state === AstronomicalMappingStateEnum::PLANNED; |
|
| 18 | } |
||
| 19 | 1 | public function isMeasured(): bool |
|
| 20 | { |
||
| 21 | 1 | return $this->state === AstronomicalMappingStateEnum::MEASURED; |
|
| 22 | } |
||
| 23 | 1 | public function isFinishing(): bool |
|
| 24 | { |
||
| 25 | 1 | return $this->state === AstronomicalMappingStateEnum::FINISHING; |
|
| 26 | } |
||
| 27 | 1 | public function isDone(): bool |
|
| 28 | { |
||
| 29 | 1 | return $this->state === AstronomicalMappingStateEnum::DONE; |
|
| 30 | } |
||
| 31 | public function getTurnsLeft(): ?int |
||
| 34 | } |
||
| 35 | public function getMeasurepointsLeft(): ?int |
||
| 36 | { |
||
| 37 | return $this->measurementpointsleft; |
||
| 38 | } |
||
| 39 | |||
| 40 | 2 | public function isSystem(): bool |
|
| 41 | { |
||
| 42 | 2 | return $this->isSystem; |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | public function getType(): string |
|
| 48 | } |
||
| 49 | } |
||
| 50 |