| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 22 | 
| Code Lines | 17 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 21 | public function __invoke(EditGameServerCommand $command): Server | ||
| 22 |     { | ||
| 23 | $server = $this->serverRepository->find($command->id); | ||
| 24 | |||
| 25 | $server->name = $command->name; | ||
| 26 | $server->installed = $command->installed ?? $server->installed; | ||
| 27 | $server->blocked = $command->blocked ?? $server->blocked; | ||
| 28 | $server->enabled = $command->enabled ?? $server->enabled; | ||
| 29 | $server->game_id = $command->gameId ?? $server->game_id; | ||
| 30 | $server->game_mod_id = $command->gameModId; | ||
| 31 | $server->server_ip = $command->serverIp; | ||
| 32 | $server->server_port = $command->serverPort; | ||
| 33 | $server->query_port = $command->queryPort; | ||
| 34 | $server->rcon_port = $command->rconPort; | ||
| 35 | $server->start_command = $command->startCommand; | ||
| 36 | $server->dir = $command->dir; | ||
| 37 | $server->su_user = $command->suUser; | ||
| 38 | $server->rcon = $command->rcon ?? $server->rcon; | ||
| 39 | |||
| 40 | $this->serverRepository->save($server); | ||
| 41 | |||
| 42 | return $server; | ||
| 43 | } | ||
| 45 |