| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Model/Reorder/Data/ |
| Current File : //var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Model/Reorder/Data/Error.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Sales\Model\Reorder\Data;
/**
* DTO represents error item
*/
class Error
{
/**
* @var string
*/
private $message;
/**
* @var string
*/
private $code;
/**
* @param string $message
* @param string $code
*/
public function __construct(string $message, string $code)
{
$this->message = $message;
$this->code = $code;
}
/**
* Get error message
*
* @return string
*/
public function getMessage(): string
{
return $this->message;
}
/**
* Get error code
*
* @return string
*/
public function getCode(): string
{
return $this->code;
}
}