<?php

namespace App\Http\Controllers\Companies;

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

class ListCompaniesController
{
    /**
     * @param Request $request
     * @param ListCompaniesLogic $logic
     * @return JsonResponse
     */
    public function list(Request $request, ListCompaniesLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}