1 | <?php |
||
16 | class PagerfantaPager implements PagerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Pagerfanta |
||
20 | */ |
||
21 | private $pagerfanta; |
||
22 | |||
23 | 19 | public function __construct(Pagerfanta $pagerfanta) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function getNbResults(): int |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 10 | public function getNbPages(): int |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 10 | public function getCurrentPage(): int |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 10 | public function setCurrentPage(int $page) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 10 | public function getMaxPerPage(): int |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 10 | public function setMaxPerPage(int $perPage) |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 10 | public function getCurrentPageResults() |
|
83 | |||
84 | 3 | public function getPagerfanta(): Pagerfanta |
|
88 | } |
||
89 |