BundleOptionPriceInterface.php 555 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Bundle\Pricing\Price;
  7. /**
  8. * Option price interface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface BundleOptionPriceInterface
  13. {
  14. /**
  15. * Return calculated options
  16. *
  17. * @return array
  18. */
  19. public function getOptions();
  20. /**
  21. * @param \Magento\Bundle\Model\Selection $selection
  22. * @return \Magento\Framework\Pricing\Amount\AmountInterface
  23. */
  24. public function getOptionSelectionAmount($selection);
  25. }