@@ -205,7 +205,10 @@ public function __construct(
205
205
}
206
206
207
207
/**
208
- * @inheritdoc
208
+ * Get resource instance
209
+ *
210
+ * @return \Magento\Framework\Model\ResourceModel\Db\AbstractDb
211
+ * @deprecated 101.1.0 because resource models should be used directly
209
212
*/
210
213
protected function _getResource ()
211
214
{
@@ -570,7 +573,9 @@ public function getSearchableData($productId, $storeId)
570
573
}
571
574
572
575
/**
573
- * @inheritdoc
576
+ * Clearing object's data
577
+ *
578
+ * @return $this
574
579
*/
575
580
protected function _clearData ()
576
581
{
@@ -580,7 +585,9 @@ protected function _clearData()
580
585
}
581
586
582
587
/**
583
- * @inheritdoc
588
+ * Clearing cyclic references
589
+ *
590
+ * @return $this
584
591
*/
585
592
protected function _clearReferences ()
586
593
{
@@ -601,7 +608,9 @@ protected function _getValidationRulesBeforeSave()
601
608
}
602
609
603
610
/**
604
- * @inheritdoc
611
+ * Get product SKU
612
+ *
613
+ * @return string
605
614
*/
606
615
public function getProductSku ()
607
616
{
@@ -613,7 +622,9 @@ public function getProductSku()
613
622
}
614
623
615
624
/**
616
- * @inheritdoc
625
+ * Get option id
626
+ *
627
+ * @return int|null
617
628
* @codeCoverageIgnoreStart
618
629
*/
619
630
public function getOptionId ()
@@ -622,47 +633,60 @@ public function getOptionId()
622
633
}
623
634
624
635
/**
625
- * @inheritdoc
636
+ * Get option title
637
+ *
638
+ * @return string
626
639
*/
627
640
public function getTitle ()
628
641
{
629
642
return $ this ->_getData (self ::KEY_TITLE );
630
643
}
631
644
632
645
/**
633
- * @inheritdoc
646
+ * Get option type
647
+ *
648
+ * @return string
634
649
*/
635
650
public function getType ()
636
651
{
637
652
return $ this ->_getData (self ::KEY_TYPE );
638
653
}
639
654
640
655
/**
641
- * @inheritdoc
656
+ * Get sort order
657
+ *
658
+ * @return int
642
659
*/
643
660
public function getSortOrder ()
644
661
{
645
662
return $ this ->_getData (self ::KEY_SORT_ORDER );
646
663
}
647
664
648
665
/**
649
- * @inheritdoc
666
+ * Get is require
667
+ *
668
+ * @return bool
669
+ * @SuppressWarnings(PHPMD.BooleanGetMethodName)
650
670
*/
651
671
public function getIsRequire ()
652
672
{
653
673
return $ this ->_getData (self ::KEY_IS_REQUIRE );
654
674
}
655
675
656
676
/**
657
- * @inheritdoc
677
+ * Get price type
678
+ *
679
+ * @return string|null
658
680
*/
659
681
public function getPriceType ()
660
682
{
661
683
return $ this ->_getData (self ::KEY_PRICE_TYPE );
662
684
}
663
685
664
686
/**
665
- * @inheritdoc
687
+ * Get Sku
688
+ *
689
+ * @return string|null
666
690
*/
667
691
public function getSku ()
668
692
{
@@ -710,71 +734,98 @@ public function getImageSizeY()
710
734
}
711
735
712
736
/**
713
- * @inheritdoc
737
+ * Set product SKU
738
+ *
739
+ * @param string $productSku
740
+ * @return $this
714
741
*/
715
742
public function setProductSku ($ productSku )
716
743
{
717
744
return $ this ->setData (self ::KEY_PRODUCT_SKU , $ productSku );
718
745
}
719
746
720
747
/**
721
- * @inheritdoc
748
+ * Set option id
749
+ *
750
+ * @param int $optionId
751
+ * @return $this
722
752
*/
723
753
public function setOptionId ($ optionId )
724
754
{
725
755
return $ this ->setData (self ::KEY_OPTION_ID , $ optionId );
726
756
}
727
757
728
758
/**
729
- * @inheritdoc
759
+ * Set option title
760
+ *
761
+ * @param string $title
762
+ * @return $this
730
763
*/
731
764
public function setTitle ($ title )
732
765
{
733
766
return $ this ->setData (self ::KEY_TITLE , $ title );
734
767
}
735
768
736
769
/**
737
- * @inheritdoc
770
+ * Set option type
771
+ *
772
+ * @param string $type
773
+ * @return $this
738
774
*/
739
775
public function setType ($ type )
740
776
{
741
777
return $ this ->setData (self ::KEY_TYPE , $ type );
742
778
}
743
779
744
780
/**
745
- * @inheritdoc
781
+ * Set sort order
782
+ *
783
+ * @param int $sortOrder
784
+ * @return $this
746
785
*/
747
786
public function setSortOrder ($ sortOrder )
748
787
{
749
788
return $ this ->setData (self ::KEY_SORT_ORDER , $ sortOrder );
750
789
}
751
790
752
791
/**
753
- * @inheritdoc
792
+ * Set is require
793
+ *
794
+ * @param bool $isRequired
795
+ * @return $this
754
796
*/
755
797
public function setIsRequire ($ isRequired )
756
798
{
757
799
return $ this ->setData (self ::KEY_IS_REQUIRE , $ isRequired );
758
800
}
759
801
760
802
/**
761
- * @inheritdoc
803
+ * Set price
804
+ *
805
+ * @param float $price
806
+ * @return $this
762
807
*/
763
808
public function setPrice ($ price )
764
809
{
765
810
return $ this ->setData (self ::KEY_PRICE , $ price );
766
811
}
767
812
768
813
/**
769
- * @inheritdoc
814
+ * Set price type
815
+ *
816
+ * @param string $priceType
817
+ * @return $this
770
818
*/
771
819
public function setPriceType ($ priceType )
772
820
{
773
821
return $ this ->setData (self ::KEY_PRICE_TYPE , $ priceType );
774
822
}
775
823
776
824
/**
777
- * @inheritdoc
825
+ * Set Sku
826
+ *
827
+ * @param string $sku
828
+ * @return $this
778
829
*/
779
830
public function setSku ($ sku )
780
831
{
0 commit comments