<?php

namespace App\Http\Controllers\Orders;

use App\Classes\Modules\Orders\ControllersLogic\CancelOrderLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CancelOrderController
{
    /**
     * @param Request $request
     * @param CancelOrderLogic $logic
     * @return JsonResponse
     */
    public function cancel(Request $request, CancelOrderLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}