AmountRenderInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Pricing\Render;
  7. use Magento\Framework\Pricing\Amount\AmountInterface;
  8. use Magento\Framework\Pricing\SaleableInterface;
  9. use Magento\Framework\Pricing\Price\PriceInterface;
  10. /**
  11. * Price amount renderer interface
  12. *
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface AmountRenderInterface
  17. {
  18. /**
  19. * Enforce custom display price value
  20. *
  21. * @param float $value
  22. * @return void
  23. */
  24. public function setDisplayValue($value);
  25. /**
  26. * @return float
  27. */
  28. public function getDisplayValue();
  29. /**
  30. * Retrieve amount object
  31. *
  32. * @return AmountInterface
  33. */
  34. public function getAmount();
  35. /**
  36. * @return SaleableInterface
  37. */
  38. public function getSaleableItem();
  39. /**
  40. * @return PriceInterface
  41. */
  42. public function getPrice();
  43. /**
  44. * @return string
  45. */
  46. public function getDisplayCurrencyCode();
  47. /**
  48. * @return string
  49. */
  50. public function getDisplayCurrencySymbol();
  51. /**
  52. * @return string
  53. */
  54. public function getAdjustmentsHtml();
  55. }