@@ -433,7 +433,7 @@ protected function _getWebsitesMap()
433
433
}
434
434
435
435
/**
436
- * { @inheritdoc}
436
+ * @inheritdoc
437
437
*/
438
438
public function validateData (DataObject $ dataObject )
439
439
{
@@ -582,7 +582,7 @@ protected function _invalidateCache()
582
582
}
583
583
584
584
/**
585
- * { @inheritdoc}
585
+ * @inheritdoc
586
586
*
587
587
* @return $this
588
588
*/
@@ -610,14 +610,19 @@ public function afterSave()
610
610
*/
611
611
public function reindex ()
612
612
{
613
- $ productIds = $ this ->_productIds ? array_keys (array_filter ($ this ->_productIds , function (array $ data ) {
614
- return array_filter ($ data );
615
- })) : [];
613
+ $ productIds = $ this ->_productIds ? array_keys (
614
+ array_filter (
615
+ $ this ->_productIds ,
616
+ function (array $ data ) {
617
+ return array_filter ($ data );
618
+ }
619
+ )
620
+ ) : [];
616
621
$ this ->_ruleProductProcessor ->reindexList ($ productIds );
617
622
}
618
623
619
624
/**
620
- * { @inheritdoc}
625
+ * @inheritdoc
621
626
*
622
627
* @return $this
623
628
*/
@@ -668,6 +673,8 @@ protected function dataDiff($array1, $array2)
668
673
}
669
674
670
675
/**
676
+ * Getter for conditions field set ID
677
+ *
671
678
* @param string $formName
672
679
* @return string
673
680
*/
@@ -676,82 +683,80 @@ public function getConditionsFieldSetId($formName = '')
676
683
return $ formName . 'rule_conditions_fieldset_ ' . $ this ->getId ();
677
684
}
678
685
679
- //@codeCoverageIgnoreStart
680
-
681
686
/**
682
- * { @inheritdoc}
687
+ * @inheritdoc
683
688
*/
684
689
public function getRuleId ()
685
690
{
686
691
return $ this ->getData (self ::RULE_ID );
687
692
}
688
693
689
694
/**
690
- * { @inheritdoc}
695
+ * @inheritdoc
691
696
*/
692
697
public function setRuleId ($ ruleId )
693
698
{
694
699
return $ this ->setData (self ::RULE_ID , $ ruleId );
695
700
}
696
701
697
702
/**
698
- * { @inheritdoc}
703
+ * @inheritdoc
699
704
*/
700
705
public function getName ()
701
706
{
702
707
return $ this ->getData (self ::NAME );
703
708
}
704
709
705
710
/**
706
- * { @inheritdoc}
711
+ * @inheritdoc
707
712
*/
708
713
public function setName ($ name )
709
714
{
710
715
return $ this ->setData (self ::NAME , $ name );
711
716
}
712
717
713
718
/**
714
- * { @inheritdoc}
719
+ * @inheritdoc
715
720
*/
716
721
public function getDescription ()
717
722
{
718
723
return $ this ->getData (self ::DESCRIPTION );
719
724
}
720
725
721
726
/**
722
- * { @inheritdoc}
727
+ * @inheritdoc
723
728
*/
724
729
public function setDescription ($ description )
725
730
{
726
731
return $ this ->setData (self ::DESCRIPTION , $ description );
727
732
}
728
733
729
734
/**
730
- * { @inheritdoc}
735
+ * @inheritdoc
731
736
*/
732
737
public function getIsActive ()
733
738
{
734
739
return $ this ->getData (self ::IS_ACTIVE );
735
740
}
736
741
737
742
/**
738
- * { @inheritdoc}
743
+ * @inheritdoc
739
744
*/
740
745
public function setIsActive ($ isActive )
741
746
{
742
747
return $ this ->setData (self ::IS_ACTIVE , $ isActive );
743
748
}
744
749
745
750
/**
746
- * { @inheritdoc}
751
+ * @inheritdoc
747
752
*/
748
753
public function getRuleCondition ()
749
754
{
750
755
return $ this ->getRuleConditionConverter ()->arrayToDataModel ($ this ->getConditions ()->asArray ());
751
756
}
752
757
753
758
/**
754
- * { @inheritdoc}
759
+ * @inheritdoc
755
760
*/
756
761
public function setRuleCondition ($ condition )
757
762
{
@@ -762,63 +767,63 @@ public function setRuleCondition($condition)
762
767
}
763
768
764
769
/**
765
- * { @inheritdoc}
770
+ * @inheritdoc
766
771
*/
767
772
public function getStopRulesProcessing ()
768
773
{
769
774
return $ this ->getData (self ::STOP_RULES_PROCESSING );
770
775
}
771
776
772
777
/**
773
- * { @inheritdoc}
778
+ * @inheritdoc
774
779
*/
775
780
public function setStopRulesProcessing ($ isStopProcessing )
776
781
{
777
782
return $ this ->setData (self ::STOP_RULES_PROCESSING , $ isStopProcessing );
778
783
}
779
784
780
785
/**
781
- * { @inheritdoc}
786
+ * @inheritdoc
782
787
*/
783
788
public function getSortOrder ()
784
789
{
785
790
return $ this ->getData (self ::SORT_ORDER );
786
791
}
787
792
788
793
/**
789
- * { @inheritdoc}
794
+ * @inheritdoc
790
795
*/
791
796
public function setSortOrder ($ sortOrder )
792
797
{
793
798
return $ this ->setData (self ::SORT_ORDER , $ sortOrder );
794
799
}
795
800
796
801
/**
797
- * { @inheritdoc}
802
+ * @inheritdoc
798
803
*/
799
804
public function getSimpleAction ()
800
805
{
801
806
return $ this ->getData (self ::SIMPLE_ACTION );
802
807
}
803
808
804
809
/**
805
- * { @inheritdoc}
810
+ * @inheritdoc
806
811
*/
807
812
public function setSimpleAction ($ action )
808
813
{
809
814
return $ this ->setData (self ::SIMPLE_ACTION , $ action );
810
815
}
811
816
812
817
/**
813
- * { @inheritdoc}
818
+ * @inheritdoc
814
819
*/
815
820
public function getDiscountAmount ()
816
821
{
817
822
return $ this ->getData (self ::DISCOUNT_AMOUNT );
818
823
}
819
824
820
825
/**
821
- * { @inheritdoc}
826
+ * @inheritdoc
822
827
*/
823
828
public function setDiscountAmount ($ amount )
824
829
{
@@ -842,7 +847,7 @@ public function getToDate()
842
847
}
843
848
844
849
/**
845
- * { @inheritdoc}
850
+ * @inheritdoc
846
851
*
847
852
* @return \Magento\CatalogRule\Api\Data\RuleExtensionInterface|null
848
853
*/
@@ -852,7 +857,7 @@ public function getExtensionAttributes()
852
857
}
853
858
854
859
/**
855
- * { @inheritdoc}
860
+ * @inheritdoc
856
861
*
857
862
* @param \Magento\CatalogRule\Api\Data\RuleExtensionInterface $extensionAttributes
858
863
* @return $this
@@ -863,6 +868,8 @@ public function setExtensionAttributes(RuleExtensionInterface $extensionAttribut
863
868
}
864
869
865
870
/**
871
+ * Getter for the rule condition converter
872
+ *
866
873
* @return Data\Condition\Converter
867
874
* @deprecated 100.1.0
868
875
*/
@@ -875,8 +882,6 @@ private function getRuleConditionConverter()
875
882
return $ this ->ruleConditionConverter ;
876
883
}
877
884
878
- //@codeCoverageIgnoreEnd
879
-
880
885
/**
881
886
* @inheritDoc
882
887
*/
0 commit comments