| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | public function getResult(PaginatorHandlerInterface $paginatorHandler, Paginator $paginator): array |
||
| 9 | { |
||
| 10 | return [ |
||
| 11 | 'pagination' => [ |
||
| 12 | 'totalPages' => $paginatorHandler->totalPages(), |
||
| 13 | 'totalItems' => $paginatorHandler->totalItems(), |
||
| 14 | 'count' => $paginator->count(), |
||
| 15 | 'itemsPerPage' => $paginatorHandler->numberOfItemsPerPage(), |
||
| 16 | 'page' => $paginator->getRequestedPageNumber(), |
||
| 17 | ], |
||
| 18 | 'data' => $paginator->collection(), |
||
| 19 | ]; |
||
| 22 |