|
@@ 298-305 (lines=8) @@
|
| 295 |
|
return $reversedOrderingConfigurations; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
private function existsBeforeCursor(string $previousCursor, AnalysedQuery $analysedQuery) |
| 299 |
|
{ |
| 300 |
|
$nextPager = (new Pager()) |
| 301 |
|
->setBefore($previousCursor) |
| 302 |
|
->setLimit(1) |
| 303 |
|
; |
| 304 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
| 308 |
|
{ |
|
@@ 307-314 (lines=8) @@
|
| 304 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
| 308 |
|
{ |
| 309 |
|
$nextPager = (new Pager()) |
| 310 |
|
->setAfter($nextCursor) |
| 311 |
|
->setLimit(1) |
| 312 |
|
; |
| 313 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
private function calculateTotalCount(Pager $filter, int $resultCount) |
| 317 |
|
{ |