public function find($notificationId) { $notification = $this->notifynderRepo->find($notificationId); if (is_null($notification)) { $error = 'Notification Not found'; throw new NotificationNotFoundException($error); } return $notification; }