quoteIdMaskFactory = $quoteIdMaskFactory; $this->cartRepository = $cartRepository; $this->quoteIdMaskResource = $quoteIdMaskResource; } /** * @inheritDoc */ public function execute(int $quoteId): string { /* Check the quote exists to avoid database constraint issues */ $this->cartRepository->get($quoteId); $quoteIdMask = $this->quoteIdMaskFactory->create(); $this->quoteIdMaskResource->load($quoteIdMask, $quoteId, 'quote_id'); $maskedId = $quoteIdMask->getMaskedId() ?? ''; return $maskedId; } }