1 | <?php |
||
6 | abstract class AbstractCriteria |
||
7 | { |
||
8 | const ORDER_ASC = 'ASC'; |
||
9 | const ORDER_DESC = 'DESC'; |
||
10 | |||
11 | protected $limit; |
||
12 | protected $offset; |
||
13 | protected $order; |
||
14 | protected $orderDirection; |
||
15 | |||
16 | /** |
||
17 | * @return bool |
||
18 | */ |
||
19 | 2 | public function hasOffset() |
|
23 | |||
24 | /** |
||
25 | * @param $code |
||
26 | * @return $this |
||
27 | */ |
||
28 | 2 | public function setOffset($code) |
|
33 | |||
34 | /** |
||
35 | * @return mixed |
||
36 | */ |
||
37 | 2 | public function getOffset() |
|
41 | |||
42 | /** |
||
43 | * @return bool |
||
44 | */ |
||
45 | 2 | public function hasLimit() |
|
49 | |||
50 | /** |
||
51 | * @param $code |
||
52 | * @return $this |
||
53 | */ |
||
54 | 2 | public function setLimit($code) |
|
59 | |||
60 | /** |
||
61 | * @return mixed |
||
62 | */ |
||
63 | 2 | public function getLimit() |
|
67 | |||
68 | /** |
||
69 | * @return bool |
||
70 | */ |
||
71 | 1 | public function hasOrder() |
|
75 | |||
76 | /** |
||
77 | * @param $code |
||
78 | * @return $this |
||
79 | */ |
||
80 | 1 | public function setOrder($order) |
|
85 | |||
86 | /** |
||
87 | * @return mixed |
||
88 | */ |
||
89 | 1 | public function getOrder() |
|
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | 1 | public function getOrderDirection() |
|
101 | |||
102 | /** |
||
103 | * @param mixed $orderDirection |
||
104 | * @return Criteria |
||
105 | */ |
||
106 | 1 | public function setOrderDirection($orderDirection) |
|
111 | |||
112 | /** |
||
113 | * @return bool |
||
114 | */ |
||
115 | 1 | public function hasOrderDirection() |
|
119 | |||
120 | /** |
||
121 | * @param $page |
||
122 | * @param $limit |
||
123 | */ |
||
124 | 1 | public function setPagination($page, $limit) |
|
130 | } |