| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class SpacecraftSystemWrapper |
||
| 9 | { |
||
| 10 | private SpacecraftSystemInterface $spacecraftSystem; |
||
| 11 | |||
| 12 | public function __construct( |
||
| 13 | SpacecraftInterface $spacecraft, |
||
| 14 | SpacecraftSystemTypeEnum $type |
||
| 15 | ) { |
||
| 16 | $this->spacecraftSystem = $spacecraft->getShipSystem($type); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function get(): SpacecraftSystemInterface |
||
| 22 | } |
||
| 23 | |||
| 24 | public function isActivated(): bool |
||
| 29 |