| 1 | <?php |
||
| 6 | class Criteria |
||
| 7 | { |
||
| 8 | protected $limit; |
||
| 9 | protected $offset; |
||
| 10 | protected $order; |
||
| 11 | protected $orderDirection; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function hasOffset() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $code |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | public function setOffset($code) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getOffset() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function hasLimit() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $code |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function setLimit($code) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return mixed |
||
| 59 | */ |
||
| 60 | public function getLimit() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | public function hasOrder() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param $code |
||
| 75 | * @return $this |
||
| 76 | */ |
||
| 77 | public function setOrder($order) |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return mixed |
||
| 85 | */ |
||
| 86 | public function getOrder() |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @return mixed |
||
| 93 | */ |
||
| 94 | public function getOrderDirection() |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @param mixed $orderDirection |
||
| 101 | * @return Criteria |
||
| 102 | */ |
||
| 103 | public function setOrderDirection($orderDirection) |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return bool |
||
| 111 | */ |
||
| 112 | public function hasOrderDirection() |
||
| 116 | |||
| 117 | |||
| 118 | } |