@@ -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) { |
@@ -40,9 +40,6 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Class constructor. |
42 | 42 | * |
43 | - * @param \stdClass $cacheConfig |
|
44 | - * Config parameters for cache. By default cache is activated and saves files |
|
45 | - * under system's temp dir. This parameter is used to set alternative options. |
|
46 | 43 | * |
47 | 44 | */ |
48 | 45 | public function __construct( |
@@ -59,7 +56,6 @@ discard block |
||
59 | 56 | * |
60 | 57 | * @param array|\stdClass $request The request to convert to an object. |
61 | 58 | * @param string $className The class of the object to which the request must be converted. |
62 | - * @param string $behaviour The behaviour of the parser. |
|
63 | 59 | */ |
64 | 60 | public function parseRequest( |
65 | 61 | $request, |
@@ -70,6 +66,10 @@ discard block |
||
70 | 66 | ->parse($this->sanitizeRequestOrThrowExceptionIfInvalid($request)); |
71 | 67 | } |
72 | 68 | |
69 | + /** |
|
70 | + * @param string $className |
|
71 | + * @param RequestParser $parser |
|
72 | + */ |
|
73 | 73 | private function generateRequestParserObject($className, $parser) |
74 | 74 | { |
75 | 75 | $cacheKey = str_replace('\\', '', $className . get_class($parser)); |
@@ -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 |