* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PrestashopCheckout\Order\Query; use PrestaShop\Module\PrestashopCheckout\Order\Exception\OrderException; use PrestaShop\Module\PrestashopCheckout\Order\ValueObject\OrderId; class GetOrderForPaymentDeniedQueryResult { /** * @var OrderId */ private $orderId; /** * @var bool */ private $hasBeenError; /** * @param int $orderId * @param bool $hasBeenError * * @throws OrderException */ public function __construct( $orderId, $hasBeenError ) { $this->orderId = new OrderId($orderId); $this->hasBeenError = $hasBeenError; } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } /** * @return bool */ public function hasBeenError() { return $this->hasBeenError; } }