@@ 60-67 (lines=8) @@ | ||
57 | * |
|
58 | * @return UriInterface |
|
59 | */ |
|
60 | public function next() |
|
61 | { |
|
62 | if ((int) $this->current()->query->getValue('o') >= $this->nbPages) { |
|
63 | return null; |
|
64 | } |
|
65 | ||
66 | return $this->getIndexUrl(+1); |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * Return the previous page URL or null if none |
|
@@ 74-81 (lines=8) @@ | ||
71 | * |
|
72 | * @return UriInterface |
|
73 | */ |
|
74 | public function previous() |
|
75 | { |
|
76 | if ((int) $this->current()->query->getValue('o') === 1) { |
|
77 | return null; |
|
78 | } |
|
79 | ||
80 | return $this->getIndexUrl(-1); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @param int $index |