1 | <?php |
||
6 | class PagerfantaPager implements PagerInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var Pagerfanta |
||
10 | */ |
||
11 | private $pagerfanta; |
||
12 | |||
13 | 13 | public function __construct(Pagerfanta $pagerfanta) |
|
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function getNbResults() |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 8 | public function getNbPages() |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 8 | public function getCurrentPage() |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 8 | public function setCurrentPage($page) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function getMaxPerPage() |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 8 | public function setMaxPerPage($perPage) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 8 | public function getCurrentPageResults() |
|
73 | |||
74 | /** |
||
75 | * @return Pagerfanta |
||
76 | */ |
||
77 | 3 | public function getPagerfanta() |
|
81 | } |
||
82 |