Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MsrpPriceInfo.php
Go to the documentation of this file.
1 <?php
7 
9 use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory;
11 
14 {
18  public function setMsrpPrice($msrpPrice)
19  {
20  $this->setData('msrp_price', $msrpPrice);
21  }
22 
26  public function getMsrpPrice()
27  {
28  return $this->getData('msrp_price');
29  }
30 
34  public function setIsApplicable($isApplicable)
35  {
36  $this->setData('is_applicable', $isApplicable);
37  }
38 
42  public function getIsApplicable()
43  {
44  return $this->getData('is_applicable');
45  }
46 
50  public function setIsShownPriceOnGesture($isShownOnGesture)
51  {
52  $this->setData('is_shown_on_guesture', $isShownOnGesture);
53  }
54 
58  public function getIsShownPriceOnGesture()
59  {
60  return $this->getData('is_shown_on_guesture');
61  }
62 
66  public function setMsrpMessage($msrpMessage)
67  {
68  $this->setData('msrp_message', $msrpMessage);
69  }
70 
74  public function getMsrpMessage()
75  {
76  return $this->getData('msrp_message');
77  }
78 
82  public function setExplanationMessage($explanationMessage)
83  {
84  $this->setData('explanation_message', $explanationMessage);
85  }
86 
90  public function getExplanationMessage()
91  {
92  return $this->getData('explanation_message');
93  }
94 
98  public function getExtensionAttributes()
99  {
100  return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
101  }
102 
106  public function setExtensionAttributes(
107  \Magento\Msrp\Api\Data\ProductRender\MsrpPriceInfoExtensionInterface $extensionAttributes
108  ) {
109  $this->_setExtensionAttributes($extensionAttributes);
110  }
111 }
setExtensionAttributes(\Magento\Msrp\Api\Data\ProductRender\MsrpPriceInfoExtensionInterface $extensionAttributes)
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$msrpPrice
Definition: msrp.phtml:23