1 | <?php |
||
13 | class AlertEndpointController extends AbstractEndpointController |
||
14 | { |
||
15 | /** |
||
16 | * Construct |
||
17 | * |
||
18 | * @param Ps2alerts\Api\Repository\AlertRepository $repository |
||
19 | * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
||
20 | * @param League\Fractal\Manager $fractal |
||
21 | */ |
||
22 | public function __construct( |
||
31 | |||
32 | /** |
||
33 | * Returns a single alert's information |
||
34 | * |
||
35 | * @see AbstractEndpointController::respondWithItem |
||
36 | * |
||
37 | * @param Symfony\Component\HttpFoundation\Request $request |
||
38 | * @param Symfony\Component\HttpFoundation\Response $response |
||
39 | * @param array $args |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getSingle(Request $request, Response $response, array $args) |
||
53 | |||
54 | public function getActives(Request $request, Response $response) |
||
64 | |||
65 | /** |
||
66 | * Returns the victories of each faction and the totals |
||
67 | * |
||
68 | * @param Symfony\Component\HttpFoundation\Request $request |
||
69 | * @param Symfony\Component\HttpFoundation\Response $response |
||
70 | * @param array $args |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getVictories(Request $request, Response $response) |
||
90 | |||
91 | /** |
||
92 | * Returns the dominations of each faction and the totals |
||
93 | * |
||
94 | * @param Symfony\Component\HttpFoundation\Request $request |
||
95 | * @param Symfony\Component\HttpFoundation\Response $response |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function getDominations(Request $request, Response $response) |
||
114 | } |
||
115 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..