@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @param \League\Fractal\TransformerAbstract $transformer The Transformer to pass through to Fractal |
| 105 | 105 | * @param \Symfony\Component\HttpFoundation\Response $response The client's response |
| 106 | 106 | * |
| 107 | - * @return array |
|
| 107 | + * @return Response |
|
| 108 | 108 | */ |
| 109 | 109 | protected function respondWithItem($item, $transformer, Response $response) |
| 110 | 110 | { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * @param \League\Fractal\TransformerAbstract $transformer The Transformer to pass through to Fractal |
| 135 | 135 | * @param \Symfony\Component\HttpFoundation\Response $response The client's response |
| 136 | 136 | * |
| 137 | - * @return array |
|
| 137 | + * @return Response |
|
| 138 | 138 | */ |
| 139 | 139 | protected function respondWithCollection($collection, $transformer, Response $response) |
| 140 | 140 | { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * Creates a collection array and sends it back to hence it came. |
| 146 | 146 | * |
| 147 | 147 | * @param array $collection |
| 148 | - * @param /League/Fractal/TransformerAbstract $transformer |
|
| 148 | + * @param \League\Fractal\TransformerAbstract $transformer |
|
| 149 | 149 | * |
| 150 | 150 | * @return array |
| 151 | 151 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * @param string $message Response message to put in the error |
| 183 | 183 | * @param int $errorCode Error code to set |
| 184 | 184 | * |
| 185 | - * @return array |
|
| 185 | + * @return Response |
|
| 186 | 186 | */ |
| 187 | 187 | protected function respondWithError(Response $response, $message, $errorCode) |
| 188 | 188 | { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 210 | 210 | * @param string $message |
| 211 | 211 | * |
| 212 | - * @return void |
|
| 212 | + * @return Response |
|
| 213 | 213 | */ |
| 214 | 214 | public function errorEmpty(Response $response, $message = 'No data / Empty') |
| 215 | 215 | { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 224 | 224 | * @param string $message |
| 225 | 225 | * |
| 226 | - * @return void |
|
| 226 | + * @return Response |
|
| 227 | 227 | */ |
| 228 | 228 | public function errorForbidden(Response $response, $message = 'Forbidden') |
| 229 | 229 | { |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 238 | 238 | * @param string $message |
| 239 | 239 | * |
| 240 | - * @return void |
|
| 240 | + * @return Response |
|
| 241 | 241 | */ |
| 242 | 242 | public function errorInternalError(Response $response, $message = 'Internal Error') |
| 243 | 243 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 252 | 252 | * @param string $message |
| 253 | 253 | * |
| 254 | - * @return void |
|
| 254 | + * @return Response |
|
| 255 | 255 | */ |
| 256 | 256 | public function errorNotFound(Response $response, $message = 'Resource Not Found') |
| 257 | 257 | { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 266 | 266 | * @param string $message |
| 267 | 267 | * |
| 268 | - * @return void |
|
| 268 | + * @return Response |
|
| 269 | 269 | */ |
| 270 | 270 | public function errorUnauthorized(Response $response, $message = 'Unauthorized') |
| 271 | 271 | { |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | /** |
| 291 | 291 | * Reads any requested includes and adds them to the item / collection |
| 292 | 292 | * |
| 293 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 293 | + * @param Request $request |
|
| 294 | 294 | * |
| 295 | 295 | * @return void |
| 296 | 296 | */ |