1 | <?php |
||
18 | trait LimitOffsetTrait |
||
19 | { |
||
20 | use LimitTrait; |
||
21 | |||
22 | private $offset = 0; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * Sets a limit offset on the query. |
||
27 | * |
||
28 | * @param int $offset Start returning after this many rows. |
||
29 | * |
||
30 | * @return $this |
||
31 | * |
||
32 | */ |
||
33 | 39 | public function offset($offset) |
|
38 | |||
39 | /** |
||
40 | * |
||
41 | * Returns the OFFSET value. |
||
42 | * |
||
43 | * @return int |
||
44 | * |
||
45 | */ |
||
46 | 46 | public function getOffset() |
|
50 | |||
51 | /** |
||
52 | * |
||
53 | * Builds the `LIMIT ... OFFSET` clause of the statement. |
||
54 | * |
||
55 | * @return string |
||
56 | * |
||
57 | */ |
||
58 | 155 | protected function buildLimit() |
|
77 | } |
||
78 |