<?php

namespace App\Http\Controllers\Bookings;

use App\Classes\Modules\Bookings\ControllersLogic\FetchBookingLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class FetchBookingController
{
    /**
     * @param Request $request
     * @param FetchBookingLogic $logic
     * @return JsonResponse
     */
    public function fetch(Request $request, FetchBookingLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}