Skip to content

Commit

Permalink
bug #5718 Update the EntityPaginator interface (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Update the EntityPaginator interface

Fixes #5659.

Commits
-------

7a2787f Update the EntityPaginator interface
  • Loading branch information
javiereguiluz committed Apr 19, 2023
2 parents 7c78665 + 7a2787f commit 312dae3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Contracts/Orm/EntityPaginatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public function getCurrentPage(): int;

public function getLastPage(): int;

public function getPageRange(int $pagesOnEachSide = null, int $pagesOnEdges = null): iterable;

public function getPageSize(): int;

public function hasPreviousPage(): bool;
Expand All @@ -30,6 +32,8 @@ public function getNextPage(): int;

public function hasToPaginate(): bool;

public function isOutOfRange(): bool;

public function getNumResults(): int;

public function getResults(): ?iterable;
Expand Down

0 comments on commit 312dae3

Please sign in to comment.