| @@ 1173-1181 (lines=9) @@ | ||
| 1170 | * @param int|ExpressionInterface $num number of records to be returned |
|
| 1171 | * @return $this |
|
| 1172 | */ |
|
| 1173 | public function limit($num) |
|
| 1174 | { |
|
| 1175 | $this->_dirty(); |
|
| 1176 | if ($num !== null && !is_object($num)) { |
|
| 1177 | $num = (int)$num; |
|
| 1178 | } |
|
| 1179 | $this->_parts['limit'] = $num; |
|
| 1180 | return $this; |
|
| 1181 | } |
|
| 1182 | ||
| 1183 | /** |
|
| 1184 | * Sets the number of records that should be skipped from the original result set |
|
| @@ 1201-1209 (lines=9) @@ | ||
| 1198 | * @param int|ExpressionInterface $num number of records to be skipped |
|
| 1199 | * @return $this |
|
| 1200 | */ |
|
| 1201 | public function offset($num) |
|
| 1202 | { |
|
| 1203 | $this->_dirty(); |
|
| 1204 | if ($num !== null && !is_object($num)) { |
|
| 1205 | $num = (int)$num; |
|
| 1206 | } |
|
| 1207 | $this->_parts['offset'] = $num; |
|
| 1208 | return $this; |
|
| 1209 | } |
|
| 1210 | ||
| 1211 | /** |
|
| 1212 | * Adds a complete query to be used in conjunction with an UNION operator with |
|