* @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 GetOrderForPaymentPendingQueryResult { /** * @var OrderId */ private $orderId; /** * @var bool */ private $isInPending; /** * @param int $orderId * @param bool $isInPending * * @throws OrderException */ public function __construct( $orderId, $isInPending ) { $this->orderId = new OrderId($orderId); $this->isInPending = $isInPending; } /** * @return OrderId */ public function getOrderId() { return $this->orderId; } /** * @return bool */ public function isInPending() { return $this->isInPending; } }