| Total Complexity | 8 |
| Total Lines | 80 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | 5 | public function getOffset(): int |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param int $offset |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | 4 | public function setOffset(int $offset) |
|
| 47 | { |
||
| 48 | 4 | $this->offset = $offset; |
|
| 49 | 4 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | 5 | public function getLimit(): int |
|
| 55 | { |
||
| 56 | 5 | return $this->limit; |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param int $limit |
||
| 61 | * @return void |
||
| 62 | */ |
||
| 63 | 4 | public function setLimit(int $limit) |
|
| 66 | 4 | } |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 5 | public function getSort(): string |
|
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param string $sort |
||
| 78 | * @return void |
||
| 79 | */ |
||
| 80 | 3 | public function setSort(string $sort) |
|
| 83 | 3 | } |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | 5 | public function getQuery(): string |
|
| 91 | } |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param string $query |
||
| 95 | * @return void |
||
| 96 | */ |
||
| 97 | 2 | public function setQuery(string $query) |
|
| 102 |