@@ -106,6 +106,9 @@ discard block |
||
106 | 106 | return $this->normalizeOutOfRangePages; |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param boolean $value |
|
111 | + */ |
|
109 | 112 | private function filterBoolean($value) |
110 | 113 | { |
111 | 114 | if (!is_bool($value)) { |
@@ -135,6 +138,9 @@ discard block |
||
135 | 138 | return $this; |
136 | 139 | } |
137 | 140 | |
141 | + /** |
|
142 | + * @param integer $maxPerPage |
|
143 | + */ |
|
138 | 144 | private function filterMaxPerPage($maxPerPage) |
139 | 145 | { |
140 | 146 | $maxPerPage = $this->toInteger($maxPerPage); |
@@ -215,6 +221,10 @@ discard block |
||
215 | 221 | $this->useDeprecatedBooleanArgument($arguments, $index, $method); |
216 | 222 | } |
217 | 223 | |
224 | + /** |
|
225 | + * @param integer $index |
|
226 | + * @param string $method |
|
227 | + */ |
|
218 | 228 | private function useDeprecatedBooleanArgument($arguments, $index, $method) |
219 | 229 | { |
220 | 230 | if (isset($arguments[$index])) { |
@@ -222,6 +232,9 @@ discard block |
||
222 | 232 | } |
223 | 233 | } |
224 | 234 | |
235 | + /** |
|
236 | + * @param integer $currentPage |
|
237 | + */ |
|
225 | 238 | private function filterCurrentPage($currentPage) |
226 | 239 | { |
227 | 240 | $currentPage = $this->toInteger($currentPage); |
@@ -244,6 +257,9 @@ discard block |
||
244 | 257 | } |
245 | 258 | } |
246 | 259 | |
260 | + /** |
|
261 | + * @return integer |
|
262 | + */ |
|
247 | 263 | private function filterOutOfRangeCurrentPage($currentPage) |
248 | 264 | { |
249 | 265 | if ($this->notAllowedCurrentPageOutOfRange($currentPage)) { |
@@ -33,11 +33,17 @@ discard block |
||
33 | 33 | $this->pagerfanta = new Pagerfanta($this->adapter); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param integer $nbResults |
|
38 | + */ |
|
36 | 39 | private function setAdapterNbResultsAny($nbResults) |
37 | 40 | { |
38 | 41 | $this->setAdapterNbResults($this->any(), $nbResults); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param integer $nbResults |
|
46 | + */ |
|
41 | 47 | private function setAdapterNbResultsOnce($nbResults) |
42 | 48 | { |
43 | 49 | $this->setAdapterNbResults($this->once(), $nbResults); |
@@ -707,6 +713,9 @@ discard block |
||
707 | 713 | $pagerfanta->getCurrentPageResults(); |
708 | 714 | } |
709 | 715 | |
716 | + /** |
|
717 | + * @param \Closure $callback |
|
718 | + */ |
|
710 | 719 | private function assertResetCurrentPageResults($callback) |
711 | 720 | { |
712 | 721 | $this->setAdapterNbResultsAny(100); |