Skip to content

Paginator Interfaces

(all in the Centum\Interfaces\Paginator namespace)

DataInterface

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

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>

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