| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ModuleRumpWrapperSensor extends ModuleRumpWrapperBase implements ModuleRumpWrapperInterface |
||
| 11 | { |
||
| 12 | public function getValue(): int |
||
| 13 | { |
||
| 14 | $module = current($this->modules); |
||
| 15 | if ($module === false) { |
||
| 16 | return 0; |
||
| 17 | } |
||
| 18 | |||
| 19 | return (new ModuleValueCalculator())->calculateModuleValue( |
||
| 20 | $this->rump, |
||
| 21 | $module->getModule(), |
||
| 22 | null, |
||
| 23 | $this->rump->getBaseSensorRange() |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function apply(ShipInterface $ship): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |