<?php

namespace App\Http\Controllers\Companies;

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

class AssignCompanyConnectionToConnectionSegmentController
{
    /**
     * @param Request $request
     * @param AssignCompanyToSegmentLogic $logic
     * @return JsonResponse
     */
    public function assign(Request $request, AssignCompanyConnectionToConnectionSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}