Skip to content

Commit b62c1a0

Browse files
author
Prabhu Ram
committed
MC-19226: Cart Promotions :: Store promotions detail on the quote
- static error fix
1 parent 20c4216 commit b62c1a0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

app/code/Magento/SalesRule/Model/Data/DiscountData.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\SalesRule\Model\Data;
99

1010
use Magento\SalesRule\Api\Data\DiscountDataInterface;
11+
use Magento\Framework\Api\ExtensionAttributesInterface;
1112

1213
/**
1314
* Discount Data Model
@@ -103,4 +104,26 @@ public function setBaseOriginalAmount(float $amount)
103104
{
104105
return $this->setData(self::BASE_ORIGINAL_AMOUNT, $amount);
105106
}
107+
108+
/**
109+
* Retrieve existing extension attributes object or create a new one.
110+
*
111+
* @return ExtensionAttributesInterface|null
112+
*/
113+
public function getExtensionAttributes()
114+
{
115+
return $this->_getExtensionAttributes();
116+
}
117+
118+
/**
119+
* Set an extension attributes object.
120+
*
121+
* @param ExtensionAttributesInterface $extensionAttributes
122+
* @return $this
123+
*/
124+
public function setExtensionAttributes(
125+
ExtensionAttributesInterface $extensionAttributes
126+
) {
127+
return $this->_setExtensionAttributes($extensionAttributes);
128+
}
106129
}

0 commit comments

Comments
 (0)