feat: filter teamer by availability at selected date
This commit is contained in:
@@ -2,13 +2,10 @@
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use App\Entity\JobProfile;
|
||||
|
||||
class TeamerFilterDto extends AbstractFilterDto
|
||||
{
|
||||
protected ?string $name = null;
|
||||
protected ?\DateTimeImmutable $dateFrom = null;
|
||||
protected ?\DateTimeImmutable $dateTo = null;
|
||||
protected ?\DateTimeImmutable $availableAt = null;
|
||||
protected array $jobProfiles = [];
|
||||
protected string $pickupId = '';
|
||||
protected bool $skiLicense = false;
|
||||
@@ -27,26 +24,14 @@ class TeamerFilterDto extends AbstractFilterDto
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDateFrom(): ?\DateTimeImmutable
|
||||
public function getAvailableAt(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->dateFrom;
|
||||
return $this->availableAt;
|
||||
}
|
||||
|
||||
public function setDateFrom(?\DateTimeImmutable $dateFrom): static
|
||||
public function setAvailableAt(?\DateTimeImmutable $availableAt): static
|
||||
{
|
||||
$this->dateFrom = $dateFrom;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDateTo(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->dateTo;
|
||||
}
|
||||
|
||||
public function setDateTo(?\DateTimeImmutable $dateTo): static
|
||||
{
|
||||
$this->dateTo = $dateTo;
|
||||
$this->availableAt = $availableAt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user