| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | |||
| 28 | /** |
||
| 29 | * updates the system metadata for this specific ship system |
||
| 30 | */ |
||
| 31 | public function update(): void |
||
| 32 | { |
||
| 33 | $system = $this->ship->getShipSystem($this->getSystemType()); |
||
| 34 | $system->setData(json_encode($this, JSON_THROW_ON_ERROR)); |
||
| 35 | $this->shipSystemRepository->save($system); |
||
| 47 |