2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wrm\Events\Domain\Model\Dto;
|
|
|
|
|
|
|
|
class DateDemand {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $sortBy = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $sortOrder = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $categories = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $includeSubCategories = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $categoryCombination = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-08-14 17:22:01 +02:00
|
|
|
protected $region = '';
|
2019-07-18 13:44:19 +02:00
|
|
|
|
|
|
|
/**
|
2019-08-14 17:22:01 +02:00
|
|
|
* @var bool
|
2019-07-18 13:44:19 +02:00
|
|
|
*/
|
2019-08-14 17:22:01 +02:00
|
|
|
protected $highlight = 0;
|
2019-07-18 13:44:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $limit = '';
|
|
|
|
|
2019-08-14 17:22:01 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $start = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $end = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $searchword = '';
|
|
|
|
|
2019-11-13 10:46:21 +01:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $considerDate = 0;
|
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getSortBy(): string
|
|
|
|
{
|
|
|
|
return $this->sortBy;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sortBy
|
|
|
|
*/
|
|
|
|
public function setSortBy(string $sortBy)
|
|
|
|
{
|
|
|
|
$this->sortBy = $sortBy;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getSortOrder(): string
|
|
|
|
{
|
|
|
|
return $this->sortOrder;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sortOrder
|
|
|
|
*/
|
|
|
|
public function setSortOrder(string $sortOrder)
|
|
|
|
{
|
|
|
|
$this->sortOrder = $sortOrder;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getCategories(): string
|
|
|
|
{
|
|
|
|
return $this->categories;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $categories
|
|
|
|
*/
|
|
|
|
public function setCategories(string $categories)
|
|
|
|
{
|
|
|
|
$this->categories = $categories;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getIncludeSubCategories(): bool
|
|
|
|
{
|
|
|
|
return $this->includeSubCategories;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param bool $includeSubCategories
|
|
|
|
*/
|
|
|
|
public function setIncludeSubCategories(bool $includeSubCategories)
|
|
|
|
{
|
|
|
|
$this->includeSubCategories = $includeSubCategories;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getCategoryCombination(): string
|
|
|
|
{
|
|
|
|
return $this->categoryCombination;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $categoryCombination
|
|
|
|
*/
|
|
|
|
public function setCategoryCombination(string $categoryCombination)
|
|
|
|
{
|
|
|
|
$this->categoryCombination = $categoryCombination;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getRegion(): string
|
|
|
|
{
|
|
|
|
return $this->region;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \Wrm\DdEvents\Domain\Model\Region $region
|
|
|
|
*/
|
|
|
|
public function setRegion(string $region): void
|
|
|
|
{
|
|
|
|
$this->region = $region;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-08-14 17:22:01 +02:00
|
|
|
* @return bool
|
2019-07-18 13:44:19 +02:00
|
|
|
*/
|
2019-08-14 17:22:01 +02:00
|
|
|
public function getHighlight(): bool
|
2019-07-18 13:44:19 +02:00
|
|
|
{
|
|
|
|
return $this->highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-08-14 17:22:01 +02:00
|
|
|
* @param bool $highlight
|
2019-07-18 13:44:19 +02:00
|
|
|
*/
|
|
|
|
public function setHighlight(string $highlight): void
|
|
|
|
{
|
|
|
|
$this->highlight = $highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getLimit(): string
|
|
|
|
{
|
|
|
|
return $this->limit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $limit
|
|
|
|
*/
|
|
|
|
public function setLimit(string $limit): void
|
|
|
|
{
|
|
|
|
$this->limit = $limit;
|
|
|
|
}
|
|
|
|
|
2019-08-14 17:22:01 +02:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getSearchword(): string
|
|
|
|
{
|
|
|
|
return $this->searchword;
|
|
|
|
}
|
2019-07-18 13:44:19 +02:00
|
|
|
|
2019-08-14 17:22:01 +02:00
|
|
|
/**
|
|
|
|
* @param string $searchword
|
|
|
|
*/
|
|
|
|
public function setSearchword(string $searchword): void
|
|
|
|
{
|
|
|
|
$this->searchword = $searchword;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getStart(): string
|
|
|
|
{
|
|
|
|
return $this->start;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $start
|
|
|
|
*/
|
|
|
|
public function setStart(string $start): void
|
|
|
|
{
|
|
|
|
$this->start = $start;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getEnd(): string
|
|
|
|
{
|
|
|
|
return $this->end;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $end
|
|
|
|
*/
|
|
|
|
public function setEnd(string $end): void
|
|
|
|
{
|
|
|
|
$this->end = $end;
|
|
|
|
}
|
2019-07-18 13:44:19 +02:00
|
|
|
|
2019-11-13 10:46:21 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getConsiderDate(): bool
|
|
|
|
{
|
|
|
|
return $this->considerDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param bool $considerDate
|
|
|
|
*/
|
|
|
|
public function setConsiderDate(string $considerDate): void
|
|
|
|
{
|
|
|
|
$this->considerDate = $considerDate;
|
|
|
|
}
|
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
}
|