143 lines
2.8 KiB
PHP
143 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace App\Model;
|
|
|
|
class ApplicationFilterDto extends AbstractFilterDto
|
|
{
|
|
public const DURATION_WEEKEND = 1;
|
|
public const DURATION_MID_WEEK = 2;
|
|
public const DURATION_FULL_WEEK = 3;
|
|
public const DURATION_MORE = 4;
|
|
|
|
protected ?int $id = null;
|
|
protected ?\DateTimeImmutable $dateFrom = null;
|
|
protected ?\DateTimeImmutable $dateTo = null;
|
|
protected array $jobProfiles = [];
|
|
protected array $hotels = [];
|
|
protected ?int $duration = null;
|
|
protected array $status = [];
|
|
protected bool $includePast = false;
|
|
protected ?string $country = null;
|
|
protected ?string $teamerName = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(?int $id): static
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDateFrom(): ?\DateTimeImmutable
|
|
{
|
|
return $this->dateFrom;
|
|
}
|
|
|
|
public function setDateFrom(?\DateTimeImmutable $dateFrom): static
|
|
{
|
|
$this->dateFrom = $dateFrom;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDateTo(): ?\DateTimeImmutable
|
|
{
|
|
return $this->dateTo;
|
|
}
|
|
|
|
public function setDateTo(?\DateTimeImmutable $dateTo): static
|
|
{
|
|
$this->dateTo = $dateTo;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getJobProfiles(): array
|
|
{
|
|
return $this->jobProfiles;
|
|
}
|
|
|
|
public function setJobProfiles(array $jobProfiles): static
|
|
{
|
|
$this->jobProfiles = $jobProfiles;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getHotels(): ?array
|
|
{
|
|
return $this->hotels;
|
|
}
|
|
|
|
public function setHotels(array $hotels): static
|
|
{
|
|
$this->hotels = $hotels;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDuration(): ?int
|
|
{
|
|
return $this->duration;
|
|
}
|
|
|
|
public function setDuration(?int $duration): static
|
|
{
|
|
$this->duration = $duration;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getStatus(): array
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function setStatus(array $status): static
|
|
{
|
|
$this->status = $status;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isIncludePast(): bool
|
|
{
|
|
return $this->includePast;
|
|
}
|
|
|
|
public function setIncludePast(bool $includePast): static
|
|
{
|
|
$this->includePast = $includePast;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getCountry(): ?string
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
public function setCountry(?string $country): static
|
|
{
|
|
$this->country = $country;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getTeamerName(): ?string
|
|
{
|
|
return $this->teamerName;
|
|
}
|
|
|
|
public function setTeamerName(?string $teamerName): static
|
|
{
|
|
$this->teamerName = $teamerName;
|
|
|
|
return $this;
|
|
}
|
|
}
|