| Total Complexity | 8 |
| Total Lines | 76 |
| Duplicated Lines | 0 % |
| Coverage | 89.47% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Filter |
||
| 21 | { |
||
| 22 | /** @var int */ |
||
| 23 | protected $offset = 0; |
||
| 24 | |||
| 25 | /** @var int */ |
||
| 26 | protected $limit = 100; |
||
| 27 | |||
| 28 | /** @var string */ |
||
| 29 | protected $sort = ""; |
||
| 30 | |||
| 31 | /** @var string */ |
||
| 32 | protected $query = ""; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | 4 | public function getOffset(): int |
|
| 38 | { |
||
| 39 | 4 | return $this->offset; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param int $offset |
||
| 44 | */ |
||
| 45 | 3 | public function setOffset(int $offset) |
|
| 46 | { |
||
| 47 | 3 | $this->offset = $offset; |
|
| 48 | 3 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | 4 | public function getLimit(): int |
|
| 54 | { |
||
| 55 | 4 | return $this->limit; |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param int $limit |
||
| 60 | */ |
||
| 61 | 3 | public function setLimit(int $limit) |
|
| 64 | 3 | } |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 4 | public function getSort(): string |
|
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param string $sort |
||
| 76 | */ |
||
| 77 | 3 | public function setSort(string $sort) |
|
| 80 | 3 | } |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | 2 | public function getQuery(): string |
|
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @param string $query |
||
| 92 | */ |
||
| 93 | public function setQuery(string $query): void |
||
| 98 |