add freight orders to carrier
This commit is contained in:
parent
14d7ddfdd3
commit
4971b86180
4 changed files with 13 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ class Carrier
|
|||
private string $notes,
|
||||
private string $loadProfile,
|
||||
private array $countriesServing,
|
||||
private array $freightOrders,
|
||||
) {}
|
||||
|
||||
public function getId(): ?int
|
||||
|
|
@ -59,4 +60,9 @@ class Carrier
|
|||
{
|
||||
return $this->countriesServing;
|
||||
}
|
||||
|
||||
public function getFreightOrders(): array
|
||||
{
|
||||
return $this->freightOrders;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ class CreateCarrier
|
|||
$this->dto->notes,
|
||||
$this->dto->loadProfile,
|
||||
$this->dto->countriesServing,
|
||||
[],
|
||||
);
|
||||
|
||||
return $this->carrierRepo->save($carrier);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue