MsrpPriceInterface.php 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Msrp\Pricing\Price;
  7. use Magento\Catalog\Model\Product;
  8. /**
  9. * MSRP price interface
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface MsrpPriceInterface
  15. {
  16. /**
  17. * Check is product need gesture to show price
  18. *
  19. * @return bool
  20. */
  21. public function isShowPriceOnGesture();
  22. /**
  23. * Get Msrp message for price
  24. *
  25. * @return string
  26. */
  27. public function getMsrpPriceMessage();
  28. /**
  29. * Check if Minimum Advertised Price is enabled
  30. *
  31. * @return bool
  32. */
  33. public function isMsrpEnabled();
  34. /**
  35. * Check if can apply Minimum Advertise price to product in specific visibility
  36. *
  37. * @param Product $saleableItem
  38. * @return bool
  39. */
  40. public function canApplyMsrp(Product $saleableItem);
  41. }