From 1446a8b34e55a4ac95a269bfdb54d5e179fb0c55 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 03:47:21 +0800 Subject: [PATCH] download billing documents --- .../DownloadBookingDocumentLogic.php | 18 ------------------ .../DownloadBookingDocumentController.php | 5 +++-- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index a82e5fad..1aa0c06f 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -20,24 +20,6 @@ use App\Classes\General\Abstracts\AbstractControllerLogic; class DownloadBookingDocumentLogic { - /** - * @return array - */ - protected function notification(): array - { - return [ - 'title' => 'Download Booking Document', - 'message' => 'You have successfully retrieved a Booking Document' - ]; - } - - /** - * DownloadBookingDocumentLogic constructor. - */ - public function __construct() - { - } - /** * @param Request $request diff --git a/app/Http/Controllers/Bookings/DownloadBookingDocumentController.php b/app/Http/Controllers/Bookings/DownloadBookingDocumentController.php index 461e48fc..c9c4f41a 100644 --- a/app/Http/Controllers/Bookings/DownloadBookingDocumentController.php +++ b/app/Http/Controllers/Bookings/DownloadBookingDocumentController.php @@ -11,9 +11,10 @@ class DownloadBookingDocumentController /** * @param Request $request * @param DownloadBookingDocumentLogic $logic - * @return JsonResponse + * @return bool + * @throws \App\Classes\Exceptions\MalformedRequestException */ - public function download(Request $request, DownloadBookingDocumentLogic $logic): JsonResponse { + public function download(Request $request, DownloadBookingDocumentLogic $logic) { return $logic->execute($request); }