<?php
namespace Products\NotificationsBundle\Model\Searching;
use App\Model\Searching\AbstractSearch;
class ProfileSearch extends AbstractSearch
{
const FILTERS = [
self::FILTERS__ALL,
self::FILTERS__STAFF,
self::FILTERS__FAMILY,
self::FILTERS__COMMUNITY,
self::FILTERS__STUDENT,
self::FILTERS__REACHABLE,
self::FILTERS__UNREACHABLE,
self::FILTERS__NO_CONTACT,
];
const FILTERS__DEFAULT = self::FILTERS__ALL;
const FILTERS__ALL = 'all';
const FILTERS__STAFF = 'staff';
const FILTERS__FAMILY = 'family';
const FILTERS__COMMUNITY = 'community';
const FILTERS__STUDENT = 'student';
const FILTERS__REACHABLE = 'reachable';
const FILTERS__UNREACHABLE = 'unreachable';
const FILTERS__NO_CONTACT = 'no-contact';
const DIRECTIONS = [
self::SORTS__ID => 'ASC',
self::SORTS__LAST_NAME => 'ASC',
self::SORTS__FIRST_NAME => 'ASC',
self::SORTS__TYPE => 'ASC',
self::SORTS__STATUS => 'DESC',
self::SORTS__TIMESTAMP => 'DESC',
];
const SORTS__DEFAULT = self::SORTS__LAST_NAME;
const SORTS__ID = 'id';
const SORTS__LAST_NAME = 'last_name';
const SORTS__FIRST_NAME = 'first_name';
const SORTS__TYPE = 'type';
const SORTS__STATUS = 'status';
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;
}
}