| 1 | <?php |
||
| 20 | final class Pager implements PagerInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var FooRepository |
||
| 24 | */ |
||
| 25 | private $repository; |
||
| 26 | |||
| 27 | public function __construct(FooRepository $repository) |
||
| 31 | |||
| 32 | public function init(): void |
||
| 35 | |||
| 36 | public function getMaxPerPage(): int |
||
| 40 | |||
| 41 | public function setMaxPerPage($max): void |
||
| 44 | |||
| 45 | public function getPage(): int |
||
| 49 | |||
| 50 | public function setPage($page): void |
||
| 53 | |||
| 54 | public function setQuery(ProxyQueryInterface $query): void |
||
| 57 | |||
| 58 | public function isLastPage(): bool |
||
| 62 | |||
| 63 | public function getNbResults(): int |
||
| 67 | |||
| 68 | public function getResults(): array |
||
| 72 | |||
| 73 | public function setMaxPageLinks(int $maxPageLinks): void |
||
| 76 | |||
| 77 | public function getMaxPageLinks(): int |
||
| 81 | } |
||
| 82 |