@@ -141,6 +141,9 @@ |
||
141 | 141 | return $this->validateListItems(array_slice($keys, $count, count($list) - $count)); |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param integer[] $array |
|
146 | + */ |
|
144 | 147 | private function validateListItems($array) |
145 | 148 | { |
146 | 149 | foreach ($array as $item) { |
@@ -47,7 +47,6 @@ |
||
47 | 47 | * Filters and validates a value. And return the filtered value. |
48 | 48 | * It throws an exception if the value is not valid. |
49 | 49 | * |
50 | - * @param mixed $value |
|
51 | 50 | * @return mixed |
52 | 51 | * |
53 | 52 | * @throws \Mcustiel\SimpleRequest\Exception\InvalidValueException |
@@ -56,7 +56,6 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param array|\stdClass $request The request to convert to an object. |
58 | 58 | * @param string $className The class of the object to which the request must be converted. |
59 | - * @param \Mcustiel\SimpleRequest\RequestParser $behaviour The behaviour of the parser. |
|
60 | 59 | */ |
61 | 60 | public function parseRequest( |
62 | 61 | $request, |
@@ -67,6 +66,10 @@ discard block |
||
67 | 66 | ->parse($this->sanitizeRequestOrThrowExceptionIfInvalid($request)); |
68 | 67 | } |
69 | 68 | |
69 | + /** |
|
70 | + * @param string $className |
|
71 | + * @param RequestParser $parser |
|
72 | + */ |
|
70 | 73 | private function generateRequestParserObject($className, $parser) |
71 | 74 | { |
72 | 75 | $cacheKey = str_replace('\\', '', $className . get_class($parser)); |