<?php

declare(strict_types=1);

namespace Mirakl\MMP\Shop\Domain\Order\Update;

use Mirakl\Core\Domain\MiraklObject;
use Mirakl\MMP\Common\Domain\Collection\ErrorCollection;

/**
 * @method ErrorCollection getErrors()
 * @method $this           setErrors(array|ErrorCollection $errors)
 * @method string          getOrderId()
 * @method $this           setOrderId(string $orderId)
 * @method UpdatedOrder    getUpdated()
 * @method $this           setUpdated(array|UpdatedOrder $updated)
 */
class UpdatedOrderAndError extends MiraklObject
{
    /**
     * @var array
     */
    protected static $dataTypes = [
        'errors'  => [ErrorCollection::class, 'create'],
        'updated' => [UpdatedOrder::class, 'create'],
    ];
}
