<?php

namespace App\Http\Controllers\Orders;

use App\Classes\Modules\Orders\ControllersLogic\FetchOrderLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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