add load profile and countries serving to carrier

This commit is contained in:
Yisroel Baum 2025-11-11 20:43:18 +02:00
parent cce5e296c6
commit 3be8eee948
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 37 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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);

View file

@ -10,5 +10,7 @@ class CreateCarrierRequest
public string $contactPerson,
public string $phoneNumber,
public string $notes,
public string $loadProfile,
public array $countriesServing,
) {}
}