<?php

namespace App\Http\Controllers\Segments;

use App\Classes\Modules\Segments\ControllersLogic\UpdateSegmentPriceLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateSegmentPriceController
{
    /**
     * @param Request $request
     * @param UpdateSegmentLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateSegmentPriceLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}