<?php

namespace App\Http\Controllers\Companies;

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

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

}