<?php
namespace Products\NotificationsBundle\Model\Searching;
use App\Model\Searching\AbstractSearch;
use Products\NotificationsBundle\Entity\Lists;
/**
*
*/
class ListSearch extends AbstractSearch
{
const FILTERS = [
self::FILTERS__ALL,
self::FILTERS__CONDITION,
self::FILTERS__STATIC,
self::FILTERS__SCHOOL,
self::FILTERS__DISTRICT,
];
const FILTERS__DEFAULT = self::FILTERS__ALL;
const FILTERS__ALL = 'all';
const FILTERS__CONDITION = Lists\ConditionList::DISCR;
const FILTERS__STATIC = Lists\StaticList::DISCR;
const FILTERS__SCHOOL = Lists\SchoolList::DISCR;
const FILTERS__DISTRICT = Lists\DistrictList::DISCR;
const DIRECTIONS = [
self::SORTS__NAME => 'ASC',
self::SORTS__TYPE => 'ASC',
self::SORTS__TIMESTAMP => 'DESC',
];
const SORTS__DEFAULT = self::SORTS__NAME;
const SORTS__NAME = 'name';
const SORTS__TYPE = 'type';
const SORTS__TIMESTAMP = 'timestamp';
/**
* @var string|null
*/
private ?string $lookup = null;
/**
* @return string|null
*/
public function getLookup(): ?string
{
return $this->lookup;
}
/**
* @param string|null $lookup
* @return $this
*/
public function setLookup(?string $lookup): self
{
$this->lookup = $lookup ?: null;
return $this;
}
}