Decorates the Doctrine ORM paginator.
class ApiPlatform\Doctrine\Orm\Paginator extends implements IteratorAggregate, `<a href="/docs/main/references/State/Pagination/PartialPaginatorInterface">ApiPlatform\State\Pagination\PartialPaginatorInterface</a>`, Traversable, Countable, `<a href="/docs/main/references/State/Pagination/PaginatorInterface">ApiPlatform\State\Pagination\PaginatorInterface</a>`, `<a href="/docs/main/references/Doctrine/Orm/QueryAwareInterface">ApiPlatform\Doctrine\Orm\QueryAwareInterface</a>`, `<a href="/docs/main/references/State/Pagination/HasNextPagePaginatorInterface">ApiPlatform\State\Pagination\HasNextPagePaginatorInterface
{
public getLastPage(): float
public getTotalItems(): float
public getQuery(): Doctrine\ORM\Query
public hasNextPage(): bool
public setDoctrinePaginatorFactory(null|ApiPlatform\Doctrine\Orm\Extension\DoctrinePaginatorFactory $doctrinePaginatorFactory): null
public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
public getCurrentPage(): float
public getItemsPerPage(): float
public getIterator(): Traversable
public count(): int
}
Doctrine\ORM\Tools\Pagination\Paginator $paginator
Traversable|array $iterator
int $firstResult
int $maxResults
Gets last page.
public getLastPage(): float
float
Gets the number of items in the whole collection.
public getTotalItems(): float
float
Gets the Query object that will actually be executed.This should allow configuring options which could only be set on the Query object itself.
public getQuery(): Doctrine\ORM\Query
Doctrine\ORM\Query
Does this collection offer a next page.
public hasNextPage(): bool
bool
public setDoctrinePaginatorFactory(null|ApiPlatform\Doctrine\Orm\Extension\DoctrinePaginatorFactory $doctrinePaginatorFactory): null
doctrinePaginatorFactory | `ApiPlatform\Doctrine\Orm\Extension\DoctrinePaginatorFactory` |
null
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more