fix: populate destination cost unit from assigned hotel
This commit is contained in:
@@ -24,8 +24,6 @@ class DestinationDto
|
||||
|
||||
private array $pickups = [];
|
||||
|
||||
private ?string $costUnit = null;
|
||||
|
||||
public static function fromEntity(Destination $destination): static
|
||||
{
|
||||
$instance = new static();
|
||||
@@ -41,7 +39,6 @@ class DestinationDto
|
||||
->setHotelBusProId($destination->getHotelBusProId())
|
||||
->setCountry($destination->getCountry())
|
||||
->setPickups($pickupIds)
|
||||
->setCostUnit($destination->getCostUnit())
|
||||
;
|
||||
|
||||
return $instance;
|
||||
@@ -118,16 +115,4 @@ class DestinationDto
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCostUnit(): ?string
|
||||
{
|
||||
return $this->costUnit;
|
||||
}
|
||||
|
||||
public function setCostUnit(?string $costUnit): static
|
||||
{
|
||||
$this->costUnit = $costUnit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user