Total Complexity | 8 |
Total Lines | 76 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 5 | public function getOffset(): int |
|
38 | { |
||
39 | 5 | return $this->offset; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param int $offset |
||
44 | */ |
||
45 | 4 | public function setOffset(int $offset) |
|
46 | { |
||
47 | 4 | $this->offset = $offset; |
|
48 | 4 | } |
|
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | 5 | public function getLimit(): int |
|
54 | { |
||
55 | 5 | return $this->limit; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param int $limit |
||
60 | */ |
||
61 | 4 | public function setLimit(int $limit) |
|
64 | 4 | } |
|
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | 5 | 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 | 5 | public function getQuery(): string |
|
88 | } |
||
89 | |||
90 | /** |
||
91 | * @param string $query |
||
92 | */ |
||
93 | 2 | public function setQuery(string $query) |
|
98 |