1 | <?php |
||
6 | class Criteria |
||
7 | { |
||
8 | protected $limit; |
||
9 | protected $offset; |
||
10 | protected $order; |
||
11 | |||
12 | /** |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function hasOffset() |
||
19 | |||
20 | /** |
||
21 | * @param $code |
||
22 | * @return $this |
||
23 | */ |
||
24 | public function setOffset($code) |
||
29 | |||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getOffset() |
||
37 | |||
38 | /** |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function hasLimit() |
||
45 | |||
46 | /** |
||
47 | * @param $code |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function setLimit($code) |
||
55 | |||
56 | /** |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function getLimit() |
||
63 | |||
64 | /** |
||
65 | * @return bool |
||
66 | */ |
||
67 | public function hasOrder() |
||
71 | |||
72 | /** |
||
73 | * @param $code |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setOrder($code) |
||
81 | |||
82 | /** |
||
83 | * @return mixed |
||
84 | */ |
||
85 | public function getOrder() |
||
89 | } |