| Total Complexity | 8 |
| Total Lines | 96 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class QueryFilterArgs |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $searchBy; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $sortBy; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $offset; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $limit; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | 3 | public function getSearchBy(): array |
|
| 31 | { |
||
| 32 | 3 | return $this->searchBy; |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param array $searchBy |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | 3 | public function setSearchBy(array $searchBy): QueryFilterArgs |
|
| 40 | { |
||
| 41 | 3 | $this->searchBy = $searchBy; |
|
| 42 | |||
| 43 | 3 | return $this; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 3 | public function getSortBy(): array |
|
| 50 | { |
||
| 51 | 3 | return $this->sortBy; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param array $sortBy |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | 3 | public function setSortBy(array $sortBy): QueryFilterArgs |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | 3 | public function getOffset(): int |
|
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $offset |
||
| 75 | * @return $this |
||
| 76 | */ |
||
| 77 | 3 | public function setOffset(int $offset): QueryFilterArgs |
|
| 78 | { |
||
| 79 | 3 | $this->offset = $offset; |
|
| 80 | |||
| 81 | 3 | return $this; |
|
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return int |
||
| 86 | */ |
||
| 87 | 3 | public function getLimit(): int |
|
| 88 | { |
||
| 89 | 3 | return $this->limit; |
|
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @param int $limit |
||
| 94 | * @return $this |
||
| 95 | */ |
||
| 96 | 3 | public function setLimit(int $limit): QueryFilterArgs |
|
| 101 | } |
||
| 102 | } |
||
| 103 |