| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function setTemplateVariables( |
||
| 25 | PlanetFieldHostInterface $host, |
||
| 26 | GameControllerInterface $game |
||
| 27 | ): void { |
||
| 28 | $list = $this->planetFieldRepository->getByColonyWithBuilding($host); |
||
| 29 | |||
| 30 | $game->setTemplateVar('PLANET_FIELD_LIST', $list); |
||
| 31 | $game->setTemplateVar('USEABLE_COMMODITY_LIST', $this->commodityRepository->getByBuildingsOnColony($host)); |
||
| 32 | } |
||
| 34 |