| 1 | <?php |
||
| 11 | class AlertEndpointController extends EndpointBaseController |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Construct |
||
| 15 | * |
||
| 16 | * @param \Ps2alerts\Api\Loader\AlertLoader $loader |
||
| 17 | */ |
||
| 18 | public function __construct(AlertLoader $loader) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * List recent alerts in the last 48 hours |
||
| 25 | * |
||
| 26 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 27 | * @param array $args |
||
| 28 | * |
||
| 29 | * @return \League\Route\Http\JsonResponse |
||
| 30 | */ |
||
| 31 | public function listLatest(Request $request, array $args) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * List alerts that are currently active |
||
| 44 | * |
||
| 45 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 46 | * @param array $args |
||
| 47 | * |
||
| 48 | * @return \League\Route\Http\JsonResponse |
||
| 49 | */ |
||
| 50 | public function listActive(Request $request, array $args) |
||
| 60 | } |
||
| 61 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.