File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
app/code/Magento/SalesRule/Model/Data Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \SalesRule \Model \Data ;
9
9
10
10
use Magento \SalesRule \Api \Data \DiscountDataInterface ;
11
+ use Magento \Framework \Api \ExtensionAttributesInterface ;
11
12
12
13
/**
13
14
* Discount Data Model
@@ -103,4 +104,26 @@ public function setBaseOriginalAmount(float $amount)
103
104
{
104
105
return $ this ->setData (self ::BASE_ORIGINAL_AMOUNT , $ amount );
105
106
}
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
+ }
106
129
}
You can’t perform that action at this time.
0 commit comments