| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function __invoke(CreateDamageCommand $command) |
||
| 42 | { |
||
| 43 | //Create the damage in the DB |
||
| 44 | $damage = FlightDamage::damage(FlightId::create($command->getFlightId()), new DamageAmount($command->getAmount()), AuthorId::create($command->getAuthorId())); |
||
| 45 | $this->damageRepository->save($damage); |
||
| 46 | |||
| 47 | $this->linkSupplierInvoice($command->getFlightId(), $command->getBillId()); |
||
| 48 | } |
||
| 49 | |||
| 67 | } |