Interfaces

(all in the Centum\Interfaces\Paginator namespace)

Centum\Interfaces\Paginator\DataInterface

getTotal(): non-negative-int
toArray(): array<mixed>
slice(
    int $offset,
    int $length
): array<mixed>

Centum\Interfaces\Paginator\PageInterface

getPaginator(): Centum\Interfaces\Paginator\PaginatorInterface
getPageNumber(): positive-int
getData(): array<mixed>
getPreviousPageNumber(): positive-int|null
getNextPageNumber(): positive-int|null
getPageRange(
    positive-int $max
): list<positive-int>

Centum\Interfaces\Paginator\PaginatorInterface

getData(): Centum\Interfaces\Paginator\DataInterface
getItemsPerPage(): positive-int
getUrlPrefix(): string
getTotalItems(): non-negative-int
getTotalPages(): positive-int
getPage(
    positive-int $pageNumber
): Centum\Interfaces\Paginator\PageInterface