MinimalPriceCalculatorInterface.php 803 B

1234567891011121314151617181920212223242526272829303132
  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. use Magento\Framework\Pricing\SaleableInterface;
  8. use Magento\Framework\Pricing\Amount\AmountInterface;
  9. /**
  10. * Interface define methods which control display of "As low as" price
  11. */
  12. interface MinimalPriceCalculatorInterface
  13. {
  14. /**
  15. * Get raw value for "as low as" price
  16. *
  17. * @param SaleableInterface $saleableItem
  18. * @return float|null
  19. */
  20. public function getValue(SaleableInterface $saleableItem);
  21. /**
  22. * Return structured object with "as low as" value
  23. *
  24. * @param SaleableInterface $saleableItem
  25. * @return AmountInterface|null
  26. */
  27. public function getAmount(SaleableInterface $saleableItem);
  28. }