feat: refactor staffing status assignment and filtering
This commit is contained in:
1 parent
fa9c68c463
commit
5dd2f79c2d
14 files changed
+128
-52
No files matched your search
@@ -17,7 +17,7 @@ class AssignmentFilterDto extends AbstractFilterDto
|
||||
protected ?JobProfile $jobProfile = null;
|
||||
protected ?string $hotel = null;
|
||||
protected ?int $duration = null;
|
||||
protected ?string $status = null;
|
||||
protected array $status = [];
|
||||
protected bool $includePast = false;
|
||||
|
||||
public function getDateFrom(): ?\DateTimeImmutable
|
||||
@@ -80,12 +80,12 @@ class AssignmentFilterDto extends AbstractFilterDto
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getStatus(): ?string
|
||||
public function getStatus(): array
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function setStatus(?string $status): static
|
||||
public function setStatus(array $status): static
|
||||
{
|
||||
$this->status = $status;
|
||||
|
||||
|
||||
Reference in new issue
Block a user