References AbstractPaginator
Reference
C
Class

ApiPlatform\Doctrine\Orm\AbstractPaginator

class ApiPlatform\Doctrine\Orm\AbstractPaginator implements IteratorAggregate, ApiPlatform\State\Pagination\PartialPaginatorInterface, Traversable, Countable
{
    public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
    public getCurrentPage(): float
    public getItemsPerPage(): float
    public getIterator(): Traversable
    public count(): int
}

Properties

paginator

Doctrine\ORM\Tools\Pagination\Paginator $paginator

iterator

Traversable|array $iterator

firstResult

int $firstResult

maxResults

int $maxResults

Methods

__construct

public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)

Parameters

paginatorDoctrine\ORM\Tools\Pagination\Paginator

getCurrentPage

Gets the current page number.

public getCurrentPage(): float

Returns

float

getItemsPerPage

Gets the number of items by page.

public getItemsPerPage(): float

Returns

float

getIterator

public getIterator(): Traversable

Returns

Traversable

count

public count(): int

Returns

int

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

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop