Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function __invoke(Request $request) : JsonResponse |
||
35 | { |
||
36 | $offset = $request->query->getInt('offset', 0); |
||
37 | $limit = $request->query->getInt('limit', 50); |
||
38 | $status = $request->query->get('status'); |
||
39 | |||
40 | $this->queryBus->handle( |
||
41 | new ViewUserNotificationsQuery( |
||
42 | $this->userId, |
||
43 | $offset, |
||
44 | $limit, |
||
45 | $status |
||
46 | ), |
||
47 | $notifications |
||
48 | ); |
||
49 | |||
50 | return new JsonResponse($notifications); |
||
51 | } |
||
52 | } |
||
53 |