add load profile and countries serving to carrier
This commit is contained in:
parent
cce5e296c6
commit
3be8eee948
6 changed files with 37 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ class Carrier
|
|||
private string $contactPerson,
|
||||
private string $phoneNumber,
|
||||
private string $notes,
|
||||
private string $loadProfile,
|
||||
private array $countriesServing,
|
||||
) {}
|
||||
|
||||
public function getId(): ?int
|
||||
|
|
@ -47,4 +49,14 @@ class Carrier
|
|||
{
|
||||
return $this->notes;
|
||||
}
|
||||
|
||||
public function getLoadProfile(): string
|
||||
{
|
||||
return $this->loadProfile;
|
||||
}
|
||||
|
||||
public function getCountriesServing(): array
|
||||
{
|
||||
return $this->countriesServing;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ class CreateCarrier
|
|||
$this->dto->contactPerson,
|
||||
$this->dto->phoneNumber,
|
||||
$this->dto->notes,
|
||||
$this->dto->loadProfile,
|
||||
$this->dto->countriesServing,
|
||||
);
|
||||
|
||||
return $this->carrierRepo->save($carrier);
|
||||
|
|
|
|||
|
|
@ -10,5 +10,7 @@ class CreateCarrierRequest
|
|||
public string $contactPerson,
|
||||
public string $phoneNumber,
|
||||
public string $notes,
|
||||
public string $loadProfile,
|
||||
public array $countriesServing,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue