Copied!

PaginatorFactoryInterface

PaginatorFactoryInterface.php : 14
Interface

Methods

publiccreatePaginator()

PaginatorFactoryInterface.php : 31
public createPaginator(iterable<string|int, object> $items, PageRange $range, int $totalItems) : PaginatorInterface<string|int, object>

Parameters

Name Type Default value Description
$items iterable<string|int, object> -

the items of the requested page only

$range PageRange - -
$totalItems int - -

Return values

PaginatorInterface<string|int, object>

publicgetRange()

PaginatorFactoryInterface.php : 21
public getRange(Operation $operation[, array<string, mixed> $context = [] ]) : PageRange|null

Parameters

Name Type Default value Description
$operation Operation - -
$context array<string, mixed> [] -

Return values

PageRange|null

null when pagination is disabled for the operation, so the provider returns the whole collection