| 1 | <?php |
||
| 13 | final class CreateDamageCommandHandler |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var FlightDamageRepository |
||
| 17 | */ |
||
| 18 | private $damageRepository; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \DoliDB |
||
| 22 | */ |
||
| 23 | private $db; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \DoliDB $db |
||
| 27 | * @param FlightDamageRepository $damageRepository |
||
| 28 | */ |
||
| 29 | public function __construct(\DoliDB $db, FlightDamageRepository $damageRepository) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @param CreateDamageCommand $command |
||
| 38 | * |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | public function __invoke(CreateDamageCommand $command) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param int $flightId |
||
| 52 | * @param int $invoiceId |
||
| 53 | * |
||
| 54 | * @throws \Exception |
||
| 55 | */ |
||
| 56 | private function linkSupplierInvoice($flightId, $invoiceId) |
||
| 66 | |||
| 67 | } |