@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |
161 | - * @param $section |
|
161 | + * @param string $section |
|
162 | 162 | * |
163 | 163 | * @return array |
164 | 164 | */ |
@@ -171,6 +171,9 @@ discard block |
||
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param string $name |
|
176 | + */ |
|
174 | 177 | public function getExtension($name) |
175 | 178 | { |
176 | 179 | if (array_key_exists($name, $this->extensions)) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * Result constructor. |
27 | 27 | * |
28 | 28 | * @param $status |
29 | - * @param $value |
|
29 | + * @param integer $value |
|
30 | 30 | * @param $message |
31 | 31 | */ |
32 | 32 | public function __construct($status, $message = '', $value = null) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @param array $attributes |
|
48 | + * @param array $attribute |
|
49 | 49 | */ |
50 | 50 | public function addAttribute(Attribute $attribute) |
51 | 51 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return mixed |
|
72 | + * @return string |
|
73 | 73 | */ |
74 | 74 | public function getMessage() |
75 | 75 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | - * @param Response $response |
|
88 | + * @param ResponseInterface $response |
|
89 | 89 | */ |
90 | 90 | public function setResponse(ResponseInterface $response) |
91 | 91 | { |
@@ -28,6 +28,10 @@ |
||
28 | 28 | |
29 | 29 | abstract protected function doValidation(ResponseInterface $response); |
30 | 30 | |
31 | + /** |
|
32 | + * @param boolean $valueToBeTrue |
|
33 | + * @param string $errorMessage |
|
34 | + */ |
|
31 | 35 | protected function assert($valueToBeTrue, $errorMessage) |
32 | 36 | { |
33 | 37 | if (!$valueToBeTrue) { |