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 88namespace Magento \SalesRule \Model \Data ;
99
1010use 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}
You can’t perform that action at this time.
0 commit comments