5
5
* Copyright © Magento, Inc. All rights reserved.
6
6
* See COPYING.txt for license details.
7
7
*/
8
+ declare (strict_types=1 );
9
+
8
10
namespace Magento \SalesRule \Model \Data ;
9
11
12
+ use Magento \Framework \Api \AbstractExtensibleObject ;
10
13
use Magento \SalesRule \Api \Data \ConditionInterface ;
14
+ use Magento \SalesRule \Api \Data \RuleExtensionInterface ;
11
15
use Magento \SalesRule \Api \Data \RuleInterface ;
16
+ use Magento \SalesRule \Api \Data \RuleLabelInterface ;
12
17
13
18
/**
14
19
* Class Rule
15
20
*
16
21
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
17
22
* @codeCoverageIgnore
18
23
*/
19
- class Rule extends \ Magento \ Framework \ Api \ AbstractExtensibleObject implements RuleInterface
24
+ class Rule extends AbstractExtensibleObject implements RuleInterface
20
25
{
21
26
const KEY_RULE_ID = 'rule_id ' ;
22
27
const KEY_NAME = 'name ' ;
@@ -187,7 +192,7 @@ public function getIsActive()
187
192
* Set whether the coupon is active
188
193
*
189
194
* @param bool $isActive
190
- * @return bool
195
+ * @return $this
191
196
*/
192
197
public function setIsActive ($ isActive )
193
198
{
@@ -197,7 +202,7 @@ public function setIsActive($isActive)
197
202
/**
198
203
* Get condition for the rule
199
204
*
200
- * @return \Magento\SalesRule\Api\Data\ ConditionInterface|null
205
+ * @return ConditionInterface|null
201
206
*/
202
207
public function getCondition ()
203
208
{
@@ -207,7 +212,7 @@ public function getCondition()
207
212
/**
208
213
* Set condition for the rule
209
214
*
210
- * @param \Magento\SalesRule\Api\Data\ ConditionInterface|null $condition
215
+ * @param ConditionInterface|null $condition
211
216
* @return $this
212
217
*/
213
218
public function setCondition (ConditionInterface $ condition = null )
@@ -218,7 +223,7 @@ public function setCondition(ConditionInterface $condition = null)
218
223
/**
219
224
* Get action condition
220
225
*
221
- * @return \Magento\SalesRule\Api\Data\ ConditionInterface|null
226
+ * @return ConditionInterface|null
222
227
*/
223
228
public function getActionCondition ()
224
229
{
@@ -228,7 +233,7 @@ public function getActionCondition()
228
233
/**
229
234
* Set action condition
230
235
*
231
- * @param \Magento\SalesRule\Api\Data\ ConditionInterface|null $actionCondition
236
+ * @param ConditionInterface|null $actionCondition
232
237
* @return $this
233
238
*/
234
239
public function setActionCondition (ConditionInterface $ actionCondition = null )
@@ -283,7 +288,7 @@ public function setIsAdvanced($isAdvanced)
283
288
/**
284
289
* Get display label
285
290
*
286
- * @return \Magento\SalesRule\Api\Data\ RuleLabelInterface[]|null
291
+ * @return RuleLabelInterface[]|null
287
292
*/
288
293
public function getStoreLabels ()
289
294
{
@@ -293,7 +298,7 @@ public function getStoreLabels()
293
298
/**
294
299
* Set display label
295
300
*
296
- * @param \Magento\SalesRule\Api\Data\ RuleLabelInterface[]|null $storeLabels
301
+ * @param RuleLabelInterface[]|null $storeLabels
297
302
* @return $this
298
303
*/
299
304
public function setStoreLabels (array $ storeLabels = null )
@@ -622,7 +627,7 @@ public function setSimpleFreeShipping($simpleFreeShipping)
622
627
/**
623
628
* @inheritdoc
624
629
*
625
- * @return \Magento\SalesRule\Api\Data\ RuleExtensionInterface|null
630
+ * @return RuleExtensionInterface|null
626
631
*/
627
632
public function getExtensionAttributes ()
628
633
{
@@ -632,11 +637,11 @@ public function getExtensionAttributes()
632
637
/**
633
638
* @inheritdoc
634
639
*
635
- * @param \Magento\SalesRule\Api\Data\ RuleExtensionInterface $extensionAttributes
640
+ * @param RuleExtensionInterface $extensionAttributes
636
641
* @return $this
637
642
*/
638
643
public function setExtensionAttributes (
639
- \ Magento \ SalesRule \ Api \ Data \ RuleExtensionInterface $ extensionAttributes
644
+ RuleExtensionInterface $ extensionAttributes
640
645
) {
641
646
return $ this ->_setExtensionAttributes ($ extensionAttributes );
642
647
}
0 commit comments