ChangeQuoteControlInterface.php 509 B

12345678910111213141516171819202122232425
  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\Api;
  8. use Magento\Quote\Api\Data\CartInterface;
  9. /**
  10. * Service checks if the user has ability to change the quote.
  11. */
  12. interface ChangeQuoteControlInterface
  13. {
  14. /**
  15. * Checks if user is allowed to change the quote.
  16. *
  17. * @param CartInterface $quote
  18. * @return bool
  19. */
  20. public function isAllowed(CartInterface $quote): bool;
  21. }