<?php

namespace Modules\Order\Services\UpdateOrder;

use Modules\Order\Models\Order;
use Throwable;

interface UpdateOrderServiceInterface
{
    /**
     * Update a resource in storage.
     *
     * @param string|int $id
     * @param array $data
     * @return Order
     * @throws Throwable
     */
    public function update(string|int $id, array $data): Order;
}
