src/Model/Request/Common/ListRequest.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Model\Request\Common;
  3. class ListRequest
  4. {
  5.     /**
  6.      * @var integer|null
  7.      */
  8.     private $offset;
  9.     /**
  10.      * @var integer|null
  11.      */
  12.     private $limit;
  13.     /**
  14.      * @var array|null
  15.      */
  16.     private $orderBy;
  17.     /**
  18.      * @var array|null
  19.      */
  20.     private $where;
  21.     /**
  22.      * @var array|null
  23.      */
  24.     private $params;
  25.     /**
  26.      * @var array|null
  27.      */
  28.     private $fields;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $responseType 'rest';
  33.     /**
  34.      * @var int
  35.      */
  36.     private $secho 0;
  37.     /**
  38.      * @return int|null
  39.      */
  40.     public function getOffset(): ?int
  41.     {
  42.         return $this->offset;
  43.     }
  44.     /**
  45.      * @param int|null $offset
  46.      * @return ListRequest
  47.      */
  48.     public function setOffset(?int $offset): ListRequest
  49.     {
  50.         $this->offset $offset;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @return int|null
  55.      */
  56.     public function getLimit(): ?int
  57.     {
  58.         return $this->limit;
  59.     }
  60.     /**
  61.      * @param int|null $limit
  62.      * @return ListRequest
  63.      */
  64.     public function setLimit(?int $limit): ListRequest
  65.     {
  66.         $this->limit $limit;
  67.         return $this;
  68.     }
  69.     /**
  70.      * @return array|null
  71.      */
  72.     public function getOrderBy(): ?array
  73.     {
  74.         return $this->orderBy;
  75.     }
  76.     /**
  77.      * @param array|null $orderBy
  78.      * @return ListRequest
  79.      */
  80.     public function setOrderBy(?array $orderBy): ListRequest
  81.     {
  82.         $this->orderBy $orderBy;
  83.         return $this;
  84.     }
  85.     /**
  86.      * @return array|null
  87.      */
  88.     public function getWhere(): ?array
  89.     {
  90.         return $this->where;
  91.     }
  92.     /**
  93.      * @param array|null $where
  94.      * @return ListRequest
  95.      */
  96.     public function setWhere(?array $where): ListRequest
  97.     {
  98.         $this->where $where;
  99.         return $this;
  100.     }
  101.     /**
  102.      * @return array|null
  103.      */
  104.     public function getParams(): ?array
  105.     {
  106.         return $this->params;
  107.     }
  108.     /**
  109.      * @param array|null $params
  110.      * @return ListRequest
  111.      */
  112.     public function setParams(?array $params): ListRequest
  113.     {
  114.         $this->params $params;
  115.         return $this;
  116.     }
  117.     /**
  118.      * @return string
  119.      */
  120.     public function getResponseType(): string
  121.     {
  122.         return $this->responseType;
  123.     }
  124.     /**
  125.      * @param string $responseType
  126.      * @return ListRequest
  127.      */
  128.     public function setResponseType(string $responseType): ListRequest
  129.     {
  130.         $this->responseType $responseType;
  131.         return $this;
  132.     }
  133.     /**
  134.      * @return array|null
  135.      */
  136.     public function getFields(): ?array
  137.     {
  138.         return $this->fields;
  139.     }
  140.     /**
  141.      * @param array|null $fields
  142.      * @return ListRequest
  143.      */
  144.     public function setFields(?array $fields): ListRequest
  145.     {
  146.         $this->fields $fields;
  147.         return $this;
  148.     }
  149.     /**
  150.      * @return int
  151.      */
  152.     public function getSecho(): int
  153.     {
  154.         return $this->secho;
  155.     }
  156.     /**
  157.      * @param int $secho
  158.      */
  159.     public function setSecho(int $secho): void
  160.     {
  161.         $this->secho $secho;
  162.     }
  163. }