<?php

namespace App\Http\Controllers\Companies;

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

class RemoveCompanyFromSegmentController
{
    /**
     * @param Request $request
     * @param RemoveCompanyFromSegmentLogic $logic
     * @return JsonResponse
     */
    public function detach(Request $request, RemoveCompanyFromSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}