quoteIdMaskFactory = $quoteIdMaskFactory; $this->cartRepository = $cartRepository; $this->quoteIdMaskResource = $quoteIdMaskResource; } /** * @inheritDoc */ public function execute(string $maskedQuoteId): int { $quoteIdMask = $this->quoteIdMaskFactory->create(); $this->quoteIdMaskResource->load($quoteIdMask, $maskedQuoteId, 'masked_id'); $cart = $this->cartRepository->get($quoteIdMask->getQuoteId()); return (int)$cart->getId(); } }