| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| 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 | /** |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function getOffset(): int |
||
| 35 | { |
||
| 36 | return $this->offset; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param int $offset |
||
| 41 | */ |
||
| 42 | public function setOffset(int $offset): void |
||
| 43 | { |
||
| 44 | $this->offset = $offset; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | public function getLimit(): int |
||
| 51 | { |
||
| 52 | return $this->limit; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param int $limit |
||
| 57 | */ |
||
| 58 | public function setLimit(int $limit): void |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getSort(): string |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $sort |
||
| 73 | */ |
||
| 74 | public function setSort(string $sort): void |
||
| 77 | } |
||
| 78 | } |
||
| 79 |