CartItemProcessorInterface.php 728 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Model\Quote\Item;
  7. use Magento\Quote\Api\Data\CartItemInterface;
  8. /**
  9. * Interface CartItemProcessorInterface
  10. */
  11. interface CartItemProcessorInterface
  12. {
  13. /**
  14. * Convert cart item to buy request object
  15. *
  16. * @param CartItemInterface $cartItem
  17. * @return \Magento\Framework\DataObject|null
  18. */
  19. public function convertToBuyRequest(CartItemInterface $cartItem);
  20. /**
  21. * Process cart item product/custom options
  22. *
  23. * @param CartItemInterface $cartItem
  24. * @return CartItemInterface
  25. */
  26. public function processOptions(CartItemInterface $cartItem);
  27. }