feat: cost unit for custom destinations

This commit is contained in:
Björn Fromme
2025-09-23 09:10:50 +02:00
parent d3c09e0cf6
commit d1cdfe461c
5 changed files with 23 additions and 2 deletions
+15
View File
@@ -24,6 +24,8 @@ class DestinationDto
private array $pickups = [];
private ?string $costUnit = null;
public static function fromEntity(Destination $destination): static
{
$instance = new static();
@@ -39,6 +41,7 @@ class DestinationDto
->setHotelBusProId($destination->getHotelBusProId())
->setCountry($destination->getCountry())
->setPickups($pickupIds)
->setCostUnit($destination->getCostUnit())
;
return $instance;
@@ -115,4 +118,16 @@ class DestinationDto
return $this;
}
public function getCostUnit(): ?string
{
return $this->costUnit;
}
public function setCostUnit(?string $costUnit): static
{
$this->costUnit = $costUnit;
return $this;
}
}