<?php

namespace App\Classes\Modules\ControllersLogic\Orders;

use App\Classes\Modules\Orders\Services\Steps\UpdatesOrderSteps;
use Illuminate\Http\Request;

class UpdateOrderStepLogic
{

    /** @var UpdatesOrderSteps */
    private $updateOrderSteps;

    /**
     * UpdateOrderStepLogic constructor.
     * @param UpdatesOrderSteps $updateOrderSteps
     */
    public function __construct(UpdatesOrderSteps $updateOrderSteps)
    {
        $this->updateOrderSteps = $updateOrderSteps;
    }


    /**
     * @param int $orderId
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function execute(int $orderId, Request $request) {

        return $this->updateOrderSteps->execute($orderId, $request);

    }
}