MaskedQuoteIdToQuoteIdInterface.php 542 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Quote\Model;
  8. use Magento\Framework\Exception\NoSuchEntityException;
  9. /**
  10. * Converts masked quote id to the quote id (entity id)
  11. * @api
  12. * @since 101.1.0
  13. */
  14. interface MaskedQuoteIdToQuoteIdInterface
  15. {
  16. /**
  17. * @param string $maskedQuoteId
  18. * @return int
  19. * @throws NoSuchEntityException
  20. * @since 101.1.0
  21. */
  22. public function execute(string $maskedQuoteId): int;
  23. }