MsrpPriceInfo.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Msrp\Model\ProductRender;
  7. use Magento\Catalog\Model\Product;
  8. use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory;
  9. use Magento\Msrp\Api\Data\ProductRender\MsrpPriceInfoInterface;
  10. class MsrpPriceInfo extends \Magento\Framework\Model\AbstractExtensibleModel implements
  11. MsrpPriceInfoInterface
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public function setMsrpPrice($msrpPrice)
  17. {
  18. $this->setData('msrp_price', $msrpPrice);
  19. }
  20. /**
  21. * @inheritdoc
  22. */
  23. public function getMsrpPrice()
  24. {
  25. return $this->getData('msrp_price');
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function setIsApplicable($isApplicable)
  31. {
  32. $this->setData('is_applicable', $isApplicable);
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function getIsApplicable()
  38. {
  39. return $this->getData('is_applicable');
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function setIsShownPriceOnGesture($isShownOnGesture)
  45. {
  46. $this->setData('is_shown_on_guesture', $isShownOnGesture);
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function getIsShownPriceOnGesture()
  52. {
  53. return $this->getData('is_shown_on_guesture');
  54. }
  55. /**
  56. * @inheritdoc
  57. */
  58. public function setMsrpMessage($msrpMessage)
  59. {
  60. $this->setData('msrp_message', $msrpMessage);
  61. }
  62. /**
  63. * @inheritdoc
  64. */
  65. public function getMsrpMessage()
  66. {
  67. return $this->getData('msrp_message');
  68. }
  69. /**
  70. * @inheritdoc
  71. */
  72. public function setExplanationMessage($explanationMessage)
  73. {
  74. $this->setData('explanation_message', $explanationMessage);
  75. }
  76. /**
  77. * @inheritdoc
  78. */
  79. public function getExplanationMessage()
  80. {
  81. return $this->getData('explanation_message');
  82. }
  83. /**
  84. * @inheritdoc
  85. */
  86. public function getExtensionAttributes()
  87. {
  88. return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
  89. }
  90. /**
  91. * @inheritdoc
  92. */
  93. public function setExtensionAttributes(
  94. \Magento\Msrp\Api\Data\ProductRender\MsrpPriceInfoExtensionInterface $extensionAttributes
  95. ) {
  96. $this->_setExtensionAttributes($extensionAttributes);
  97. }
  98. }