@@ -84,7 +84,7 @@ public function __construct(
84
84
* @param Rule $ruleModel
85
85
* @return RuleDataModel
86
86
*/
87
- public function toDataModel (\ Magento \ SalesRule \ Model \ Rule $ ruleModel )
87
+ public function toDataModel (Rule $ ruleModel )
88
88
{
89
89
$ modelData = $ ruleModel ->getData ();
90
90
$ modelData = $ this ->convertExtensionAttributesToObject ($ modelData );
@@ -99,10 +99,10 @@ public function toDataModel(\Magento\SalesRule\Model\Rule $ruleModel)
99
99
100
100
/**
101
101
* @param RuleDataModel $dataModel
102
- * @param \Magento\SalesRule\Model\ Rule $ruleModel
102
+ * @param Rule $ruleModel
103
103
* @return $this
104
104
*/
105
- protected function mapConditions (RuleDataModel $ dataModel , \ Magento \ SalesRule \ Model \ Rule $ ruleModel )
105
+ protected function mapConditions (RuleDataModel $ dataModel , Rule $ ruleModel )
106
106
{
107
107
$ conditionSerialized = $ ruleModel ->getConditionsSerialized ();
108
108
if ($ conditionSerialized ) {
@@ -117,10 +117,10 @@ protected function mapConditions(RuleDataModel $dataModel, \Magento\SalesRule\Mo
117
117
118
118
/**
119
119
* @param RuleDataModel $dataModel
120
- * @param \Magento\SalesRule\Model\ Rule $ruleModel
120
+ * @param Rule $ruleModel
121
121
* @return $this
122
122
*/
123
- protected function mapActionConditions (RuleDataModel $ dataModel , \ Magento \ SalesRule \ Model \ Rule $ ruleModel )
123
+ protected function mapActionConditions (RuleDataModel $ dataModel , Rule $ ruleModel )
124
124
{
125
125
$ actionConditionSerialized = $ ruleModel ->getActionsSerialized ();
126
126
if ($ actionConditionSerialized ) {
@@ -194,10 +194,11 @@ private function convertExtensionAttributesToObject(array $data)
194
194
}
195
195
196
196
/**
197
- * @param \Magento\SalesRule\Model\Rule $ruleModel
197
+ * @param RuleDataModel $dataModel
198
+ * @param Rule $ruleModel
198
199
* @return $this
199
200
*/
200
- protected function mapFields (RuleDataModel $ dataModel , \ Magento \ SalesRule \ Model \ Rule $ ruleModel )
201
+ protected function mapFields (RuleDataModel $ dataModel , Rule $ ruleModel )
201
202
{
202
203
$ this ->mapConditions ($ dataModel , $ ruleModel );
203
204
$ this ->mapActionConditions ($ dataModel , $ ruleModel );
0 commit comments