<?php

namespace App\Http\Controllers\Jobs;

use App\Classes\Modules\Jobs\ControllersLogic\FetchJobResultLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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