CustomOptionPriceInterface.php 706 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Pricing\Price;
  7. /**
  8. * Option price interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface CustomOptionPriceInterface
  14. {
  15. /**
  16. * Flag to indicate the price is for configuration option of a product
  17. */
  18. const CONFIGURATION_OPTION_FLAG = 'configuration_option_flag';
  19. /**
  20. * Return calculated options
  21. *
  22. * @return array
  23. */
  24. public function getOptions();
  25. /**
  26. * Return the minimal or maximal price for custom options
  27. *
  28. * @param bool $getMin
  29. * @return float
  30. */
  31. public function getCustomOptionRange($getMin);
  32. }