src/Products/NotificationsBundle/Model/Searching/ListSearch.php line 11

Open in your IDE?
  1. <?php
  2. namespace Products\NotificationsBundle\Model\Searching;
  3. use App\Model\Searching\AbstractSearch;
  4. use Products\NotificationsBundle\Entity\Lists;
  5. /**
  6.  *
  7.  */
  8. class ListSearch extends AbstractSearch
  9. {
  10.     const FILTERS = [
  11.         self::FILTERS__ALL,
  12.         self::FILTERS__CONDITION,
  13.         self::FILTERS__STATIC,
  14.         self::FILTERS__SCHOOL,
  15.         self::FILTERS__DISTRICT,
  16.     ];
  17.     const FILTERS__DEFAULT self::FILTERS__ALL;
  18.     const FILTERS__ALL 'all';
  19.     const FILTERS__CONDITION Lists\ConditionList::DISCR;
  20.     const FILTERS__STATIC Lists\StaticList::DISCR;
  21.     const FILTERS__SCHOOL Lists\SchoolList::DISCR;
  22.     const FILTERS__DISTRICT Lists\DistrictList::DISCR;
  23.     const DIRECTIONS = [
  24.         self::SORTS__NAME => 'ASC',
  25.         self::SORTS__TYPE => 'ASC',
  26.         self::SORTS__TIMESTAMP => 'DESC',
  27.     ];
  28.     const SORTS__DEFAULT self::SORTS__NAME;
  29.     const SORTS__NAME 'name';
  30.     const SORTS__TYPE 'type';
  31.     const SORTS__TIMESTAMP 'timestamp';
  32.     /**
  33.      * @var string|null
  34.      */
  35.     private ?string $lookup null;
  36.     /**
  37.      * @return string|null
  38.      */
  39.     public function getLookup(): ?string
  40.     {
  41.         return $this->lookup;
  42.     }
  43.     /**
  44.      * @param string|null $lookup
  45.      * @return $this
  46.      */
  47.     public function setLookup(?string $lookup): self
  48.     {
  49.         $this->lookup $lookup ?: null;
  50.         return $this;
  51.     }
  52. }