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