feat: filter assignments by hotel in favor of destination

This commit is contained in:
Björn Fromme committed 2024-02-28 13:10:52 +01:00
1 parent e0522bdf53
commit a668dcb326
7 files changed
+41 -34

No files matched your search

+5 -5
View File
@@ -15,7 +15,7 @@ class AssignmentFilterDto extends AbstractFilterDto
protected ?\DateTimeImmutable $dateFrom = null;
protected ?\DateTimeImmutable $dateTo = null;
protected ?JobProfile $jobProfile = null;
protected ?Destination $destination = null;
protected ?string $hotel = null;
protected ?int $duration = null;
protected ?string $status = null;
@@ -55,14 +55,14 @@ class AssignmentFilterDto extends AbstractFilterDto
return $this;
}
public function getDestination(): ?Destination
public function getHotel(): ?string
{
return $this->destination;
return $this->hotel;
}
public function setDestination(?Destination $destination): static
public function setHotel(?string $hotel): static
{
$this->destination = $destination;
$this->hotel = $hotel;
return $this;
}