ConfigurableOptionsProviderInterface.php 576 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\ConfigurableProduct\Pricing\Price;
  7. use Magento\Catalog\Api\Data\ProductInterface;
  8. /**
  9. * Provide configurable sub-products for price calculation
  10. * @api
  11. * @since 100.1.1
  12. */
  13. interface ConfigurableOptionsProviderInterface
  14. {
  15. /**
  16. * @param ProductInterface $product
  17. * @return \Magento\Catalog\Api\Data\ProductInterface[]
  18. * @since 100.1.1
  19. */
  20. public function getProducts(\Magento\Catalog\Api\Data\ProductInterface $product);
  21. }