| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 | public function __invoke(string $notificationId) : JsonResponse  | 
            ||
| 36 |     { | 
            ||
| 37 |         try { | 
            ||
| 38 | $this->commandBus->handle(  | 
            ||
| 39 | new MarkAsReadNotificationCommand(  | 
            ||
| 40 | $notificationId,  | 
            ||
| 41 | $this->userId  | 
            ||
| 42 | )  | 
            ||
| 43 | );  | 
            ||
| 44 |         } catch (UserDoesNotExist | NotificationDoesNotExist $exception) { | 
            ||
| 45 | return new JsonResponse(null, 404);  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | return new JsonResponse();  | 
            ||
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 |