* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Order\Command; use PrestaShop\PrestaShop\Core\Domain\Cart\Exception\CartConstraintException; use PrestaShop\PrestaShop\Core\Domain\Cart\ValueObject\CartId; /** * Sends email to customer with link for processing the order from cart */ class SendProcessOrderEmailCommand { /** * @var CartId */ private $cartId; /** * @param int $cartId * * @throws CartConstraintException */ public function __construct(int $cartId) { $this->cartId = new CartId($cartId); } /** * @return CartId */ public function getCartId(): CartId { return $this->cartId; } }