@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @param \League\Fractal\TransformerAbstract $callback 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, $callback, Response $response) |
| 110 | 110 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @param \League\Fractal\TransformerAbstract $callback The Transformer to pass through to Fractal |
| 122 | 122 | * @param \Symfony\Component\HttpFoundation\Response $response The client's response |
| 123 | 123 | * |
| 124 | - * @return array |
|
| 124 | + * @return Response |
|
| 125 | 125 | */ |
| 126 | 126 | protected function respondWithCollection($collection, $callback, Response $response) |
| 127 | 127 | { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param string $message Response message to put in the error |
| 157 | 157 | * @param int $errorCode Error code to set |
| 158 | 158 | * |
| 159 | - * @return array |
|
| 159 | + * @return Response |
|
| 160 | 160 | */ |
| 161 | 161 | protected function respondWithError(Response $response, $message, $errorCode) |
| 162 | 162 | { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 184 | 184 | * @param string $message |
| 185 | 185 | * |
| 186 | - * @return void |
|
| 186 | + * @return Response |
|
| 187 | 187 | */ |
| 188 | 188 | public function errorEmpty(Response $response, $message = 'No data / Empty') |
| 189 | 189 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 198 | 198 | * @param string $message |
| 199 | 199 | * |
| 200 | - * @return void |
|
| 200 | + * @return Response |
|
| 201 | 201 | */ |
| 202 | 202 | public function errorForbidden(Response $response, $message = 'Forbidden') |
| 203 | 203 | { |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 212 | 212 | * @param string $message |
| 213 | 213 | * |
| 214 | - * @return void |
|
| 214 | + * @return Response |
|
| 215 | 215 | */ |
| 216 | 216 | public function errorInternalError(Response $response, $message = 'Internal Error') |
| 217 | 217 | { |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 226 | 226 | * @param string $message |
| 227 | 227 | * |
| 228 | - * @return void |
|
| 228 | + * @return Response |
|
| 229 | 229 | */ |
| 230 | 230 | public function errorNotFound(Response $response, $message = 'Resource Not Found') |
| 231 | 231 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 240 | 240 | * @param string $message |
| 241 | 241 | * |
| 242 | - * @return void |
|
| 242 | + * @return Response |
|
| 243 | 243 | */ |
| 244 | 244 | public function errorUnauthorized(Response $response, $message = 'Unauthorized') |
| 245 | 245 | { |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | /** |
| 265 | 265 | * Reads any requested includes and adds them to the item / collection |
| 266 | 266 | * |
| 267 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 267 | + * @param Request $request |
|
| 268 | 268 | * |
| 269 | 269 | * @return void |
| 270 | 270 | */ |
@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * Construct |
| 22 | 22 | * |
| 23 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
| 24 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
| 25 | - * @param League\Fractal\Manager $fractal |
|
| 23 | + * @param AlertRepository $repository |
|
| 24 | + * @param AlertTransformer $transformer |
|
| 25 | + * @param Manager $fractal |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct( |
| 28 | 28 | AlertRepository $repository, |
@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns the victories of each faction and the totals |
| 39 | 39 | * |
| 40 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 41 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
| 40 | + * @param Request $request |
|
| 41 | + * @param Response $response |
|
| 42 | 42 | * |
| 43 | - * @return array |
|
| 43 | + * @return Response |
|
| 44 | 44 | */ |
| 45 | 45 | public function getVictories(Request $request, Response $response) |
| 46 | 46 | { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 54 | 54 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 55 | 55 | * |
| 56 | - * @return array |
|
| 56 | + * @return Response |
|
| 57 | 57 | */ |
| 58 | 58 | public function getDominations(Request $request, Response $response) |
| 59 | 59 | { |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * Construct |
| 17 | 17 | * |
| 18 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
| 19 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
| 20 | - * @param League\Fractal\Manager $fractal |
|
| 18 | + * @param AlertRepository $repository |
|
| 19 | + * @param AlertTransformer $transformer |
|
| 20 | + * @param Manager $fractal |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct( |
| 23 | 23 | AlertRepository $repository, |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Returns a single alert's information |
| 34 | 34 | * |
| 35 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 36 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
| 35 | + * @param Request $request |
|
| 36 | + * @param Response $response |
|
| 37 | 37 | * @param array $args |
| 38 | 38 | * |
| 39 | - * @return \League\Fractal\TransformerAbstract |
|
| 39 | + * @return Response |
|
| 40 | 40 | */ |
| 41 | 41 | public function getSingle(Request $request, Response $response, array $args) |
| 42 | 42 | { |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Returns all currently running alerts |
| 54 | 54 | * |
| 55 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 56 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
| 55 | + * @param Request $request |
|
| 56 | + * @param Response $response |
|
| 57 | 57 | * |
| 58 | - * @return \League\Fractal\TransformerAbstract |
|
| 58 | + * @return Response |
|
| 59 | 59 | */ |
| 60 | 60 | public function getActives(Request $request, Response $response) |
| 61 | 61 | { |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Returns all alerts in historial order |
| 73 | 73 | * |
| 74 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 75 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
| 74 | + * @param Request $request |
|
| 75 | + * @param Response $response |
|
| 76 | 76 | * |
| 77 | - * @return \League\Fractal\TransformerAbstract |
|
| 77 | + * @return Response |
|
| 78 | 78 | */ |
| 79 | 79 | public function getHistoryByDate(Request $request, Response $response) |
| 80 | 80 | { |