src/App/Model/Searching/AccountSearch.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\Model\Searching;
  3. final class AccountSearch extends AbstractSearch
  4. {
  5.     public const FILTERS = [
  6.         self::FILTERS__ALL,
  7.         self::FILTERS__ACTIVE,
  8.         self::FILTERS__INACTIVE,
  9.         self::FILTERS__SUPER_USER,
  10.         self::FILTERS__NON_SUPER_USER,
  11.         self::FILTERS__ONE_ROSTER,
  12.         self::FILTERS__NON_ONE_ROSTER,
  13.     ];
  14.     public const FILTERS__DEFAULT self::FILTERS__ACTIVE;
  15.     public const FILTERS__ALL 'all';
  16.     public const FILTERS__ACTIVE 'active';
  17.     public const FILTERS__INACTIVE 'inactive';
  18.     public const FILTERS__SUPER_USER 'super_user';
  19.     public const FILTERS__NON_SUPER_USER 'non_super_user';
  20.     public const FILTERS__ONE_ROSTER 'one_roster';
  21.     public const FILTERS__NON_ONE_ROSTER 'non_one_roster';
  22.     public const DIRECTIONS = [
  23.         self::SORTS__NAME => 'ASC',
  24.         self::SORTS__EMAIL => 'ASC',
  25.         self::SORTS__ACTIVE => 'ASC',
  26.         self::SORTS__ONEROSTER => 'ASC',
  27.         self::SORTS__LAST_LOGIN => 'DESC',
  28.         self::SORTS__TIMESTAMP => 'DESC',
  29.     ];
  30.     public const SORTS__DEFAULT self::SORTS__NAME;
  31.     public const SORTS__NAME 'name';
  32.     public const SORTS__EMAIL 'email';
  33.     public const SORTS__ACTIVE 'active';
  34.     public const SORTS__ONEROSTER 'oneroster';
  35.     public const SORTS__LAST_LOGIN 'last_login';
  36.     public const SORTS__TIMESTAMP 'timestamp';
  37.     /**
  38.      * @var string|null
  39.      */
  40.     private ?string $lookup null;
  41.     /**
  42.      * @return string|null
  43.      */
  44.     public function getLookup(): ?string
  45.     {
  46.         return $this->lookup;
  47.     }
  48.     /**
  49.      * @param string|null $lookup
  50.      * @return $this
  51.      */
  52.     public function setLookup(?string $lookup): self
  53.     {
  54.         $this->lookup $lookup ?: null;
  55.         return $this;
  56.     }
  57. }