<?php

namespace App\Http\Controllers\Companies;

use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyNameAndDebtorLogic;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateCompanyNameAndDebtorController extends Controller
{
    /**
     * @param Request $request
     * @param UpdateCompanyLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateCompanyNameAndDebtorLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}
