@@ 234-245 (lines=12) @@ | ||
231 | * |
|
232 | * @return Facet |
|
233 | */ |
|
234 | public function limit($offset, $limit = null) |
|
235 | { |
|
236 | if ($limit === null) { |
|
237 | $this->limit = (int) $offset; |
|
238 | return $this; |
|
239 | } |
|
240 | ||
241 | $this->offset($offset); |
|
242 | $this->limit = (int) $limit; |
|
243 | ||
244 | return $this; |
|
245 | } |
|
246 | ||
247 | /** |
|
248 | * OFFSET clause |
@@ 1054-1065 (lines=12) @@ | ||
1051 | * |
|
1052 | * @return SphinxQL |
|
1053 | */ |
|
1054 | public function limit($offset, $limit = null) |
|
1055 | { |
|
1056 | if ($limit === null) { |
|
1057 | $this->limit = (int) $offset; |
|
1058 | return $this; |
|
1059 | } |
|
1060 | ||
1061 | $this->offset($offset); |
|
1062 | $this->limit = (int) $limit; |
|
1063 | ||
1064 | return $this; |
|
1065 | } |
|
1066 | ||
1067 | /** |
|
1068 | * OFFSET clause |