* @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\PayPal\Order\Query; use PrestaShop\Module\PrestashopCheckout\Cart\Exception\CartException; use PrestaShop\Module\PrestashopCheckout\Cart\ValueObject\CartId; class GetPayPalOrderForCartIdQuery { /** * @var CartId */ private $cartId; /** * @param int $cartId * * @throws CartException */ public function __construct($cartId) { $this->cartId = new CartId($cartId); } /** * @return CartId */ public function getCartId() { return $this->cartId; } }