@@ 288-295 (lines=8) @@ | ||
285 | return $reversedOrderingConfigurations; |
|
286 | } |
|
287 | ||
288 | private function existsBeforeCursor(string $previousCursor, AnalysedQuery $analysedQuery) |
|
289 | { |
|
290 | $nextPager = (new Pager()) |
|
291 | ->setBefore($previousCursor) |
|
292 | ->setLimit(1) |
|
293 | ; |
|
294 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
295 | } |
|
296 | ||
297 | private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
|
298 | { |
|
@@ 297-304 (lines=8) @@ | ||
294 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
295 | } |
|
296 | ||
297 | private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
|
298 | { |
|
299 | $nextPager = (new Pager()) |
|
300 | ->setAfter($nextCursor) |
|
301 | ->setLimit(1) |
|
302 | ; |
|
303 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
304 | } |
|
305 | ||
306 | private function calculateTotalCount(Pager $filter, int $resultCount) |
|
307 | { |