<?php

namespace App\Http\Controllers\Companies;

use App\Classes\Modules\Companies\ControllersLogic\FetchCompanyLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}