<?php
namespace App\Entity\Utils;
class UnitFilters extends AccommodationTypeFilter {
/**
* @var int $resourceId
*/
private $resourceId;
/**
* @var int|null $unitId
*/
private $unitId;
/**
* @var array $unitArea
*/
private $unitArea;
/**
* @var int $priceFrom
*/
private $priceFrom;
/**
* @var int $priceTo
*/
private $priceTo;
/**
* @var array $options
*/
private $options;
/**
* @var array $bedrooms
*/
private $bedrooms;
/**
* @var array $unitIds
*/
private $unitIds;
public function __construct(
int $resortId,
int $distributionChannelId,
string $arrivalDate = "",
string $departureDate = "",
int $numberOfBedrooms = 0,
int $category = 0,
bool $withTerrace = false,
bool $withAirConditioning = false,
bool $withAnimals = false,
bool $withPRM = false,
string $lang = "fr",
string $originalLang = "fr",
?string $accoCode = null,
int $capacity = 1,
int $resourceId,
int $unitId = null,
array $unitArea = [],
int $priceFrom = 0,
int $priceTo = 0,
array $options = [],
array $bedrooms = []
) {
parent::__construct(
$resortId,
$distributionChannelId,
$arrivalDate,
$departureDate,
$numberOfBedrooms,
$category,
$withTerrace,
$withAirConditioning,
$withAnimals,
$withPRM,
$lang,
$originalLang,
$accoCode,
$capacity
);
$this->resourceId = $resourceId;
$this->unitId = $unitId;
$this->unitArea = $unitArea;
$this->priceFrom = $priceFrom;
$this->priceTo = $priceTo;
$this->options = $options;
$this->bedrooms = $bedrooms;
$this->unitIds = [];
}
/**
* @return int
*/
public function getResourceId(): int {
return $this->resourceId;
}
/**
* @param int $resourceId
*/
public function setResourceId(int $resourceId): void {
$this->resourceId = $resourceId;
}
/**
* @return int|null
*/
public function getUnitId(): ?int {
return $this->unitId;
}
/**
* @param int|null $unitId
*/
public function setUnitId(?int $unitId): void {
$this->unitId = $unitId;
}
/**
* @return array
*/
public function getUnitArea(): array {
return $this->unitArea;
}
/**
* @param array $unitArea
*/
public function setUnitArea(array $unitArea): void {
$this->unitArea = $unitArea;
}
/**
* @return int
*/
public function getPriceFrom(): int {
return $this->priceFrom;
}
/**
* @param int $priceFrom
*/
public function setPriceFrom(int $priceFrom): void {
$this->priceFrom = $priceFrom;
}
/**
* @return int
*/
public function getPriceTo(): int {
return $this->priceTo;
}
/**
* @param int $priceTo
*/
public function setPriceTo(int $priceTo): void {
$this->priceTo = $priceTo;
}
/**
* @return array
*/
public function getOptions(): array {
return $this->options;
}
/**
* @param array $options
*/
public function setOptions(array $options): void {
$this->options = $options;
}
/**
* @return array
*/
public function getUnitIds(): array {
return $this->unitIds;
}
/**
* @param array $unitIds
*/
public function setUnitIds(array $unitIds): void {
$this->unitIds = $unitIds;
}
/**
* @return bool
*/
public function hasUnitIds(): bool
{
return !empty($this->unitIds);
}
/**
* @return array
*/
public function getBedrooms(): array {
return $this->bedrooms;
}
/**
* @param array $bedrooms
*/
public function setBedrooms(array $bedrooms): void {
$this->bedrooms = $bedrooms;
}
}