File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed
CatalogSampleData/Model/Product
OfflineShippingSampleData/Model
SalesRuleSampleData/Model Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class Converter
54
54
55
55
/**
56
56
* @param \Magento\Catalog\Model\Category\TreeFactory $categoryTreeFactory
57
- * @param \Magento\Catalog\Model\Resource \Category\TreeFactory $categoryResourceTreeFactory
57
+ * @param \Magento\Catalog\Model\ResourceModel \Category\TreeFactory $categoryResourceTreeFactory
58
58
* @param \Magento\Eav\Model\Config $eavConfig
59
59
* @param \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory
60
60
* @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory
@@ -63,7 +63,7 @@ class Converter
63
63
*/
64
64
public function __construct (
65
65
\Magento \Catalog \Model \Category \TreeFactory $ categoryTreeFactory ,
66
- \Magento \Catalog \Model \Resource \Category \TreeFactory $ categoryResourceTreeFactory ,
66
+ \Magento \Catalog \Model \ResourceModel \Category \TreeFactory $ categoryResourceTreeFactory ,
67
67
\Magento \Eav \Model \Config $ eavConfig ,
68
68
\Magento \Catalog \Model \ResourceModel \Category \CollectionFactory $ categoryCollectionFactory ,
69
69
\Magento \Catalog \Model \ResourceModel \Product \Attribute \CollectionFactory $ attributeCollectionFactory ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Msrp
31
31
protected $ productIds ;
32
32
33
33
/**
34
- * @var \Magento\Catalog\Model\Resource \Product\Collection
34
+ * @var \Magento\Catalog\Model\ResourceModel \Product\Collection
35
35
*/
36
36
protected $ productCollection ;
37
37
@@ -42,12 +42,12 @@ class Msrp
42
42
43
43
/**
44
44
* @param SampleDataContext $sampleDataContext
45
- * @param \Magento\Catalog\Model\Resource \Product\CollectionFactory $productCollectionFactory
45
+ * @param \Magento\Catalog\Model\ResourceModel \Product\CollectionFactory $productCollectionFactory
46
46
* @param \Magento\Framework\App\Config\Storage\WriterInterface $configWriter
47
47
*/
48
48
public function __construct (
49
49
SampleDataContext $ sampleDataContext ,
50
- \Magento \Catalog \Model \Resource \Product \CollectionFactory $ productCollectionFactory ,
50
+ \Magento \Catalog \Model \ResourceModel \Product \CollectionFactory $ productCollectionFactory ,
51
51
\Magento \Framework \App \Config \Storage \WriterInterface $ configWriter
52
52
) {
53
53
$ this ->fixtureManager = $ sampleDataContext ->getFixtureManager ();
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Tablerate
28
28
protected $ csvReader ;
29
29
30
30
/**
31
- * @var \Magento\OfflineShipping\Model\Resource \Carrier\Tablerate
31
+ * @var \Magento\OfflineShipping\Model\ResourceModel \Carrier\Tablerate
32
32
*/
33
33
protected $ tablerate ;
34
34
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Review
31
31
protected $ reviewFactory ;
32
32
33
33
/**
34
- * @var \Magento\Review\Model\Resource \Review\CollectionFactory
34
+ * @var \Magento\Review\Model\ResourceModel \Review\CollectionFactory
35
35
*/
36
36
protected $ reviewCollectionFactory ;
37
37
@@ -139,7 +139,7 @@ public function install(array $fixtures)
139
139
if (empty ($ productId )) {
140
140
continue ;
141
141
}
142
- /** @var \Magento\Review\Model\Resource \Review\Collection $reviewCollection */
142
+ /** @var \Magento\Review\Model\ResourceModel \Review\Collection $reviewCollection */
143
143
$ reviewCollection = $ this ->reviewCollectionFactory ->create ();
144
144
$ reviewCollection ->addFilter ('entity_pk_value ' , $ productId )
145
145
->addFilter ('entity_id ' , $ this ->getReviewEntityId ())
Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \Setup \SampleData \Context as SampleDataContext ;
9
9
use Magento \SalesRule \Model \RuleFactory as RuleFactory ;
10
- use Magento \SalesRule \Model \Resource \Rule \CollectionFactory as RuleCollectionFactory ;
10
+ use Magento \SalesRule \Model \ResourceModel \Rule \CollectionFactory as RuleCollectionFactory ;
11
11
12
12
/**
13
13
* Class Rule
@@ -90,7 +90,7 @@ public function install(array $fixtures)
90
90
$ data [$ header [$ key ]] = $ value ;
91
91
}
92
92
$ row = $ data ;
93
- /** @var \Magento\SalesRule\Model\Resource \Rule\Collection $ruleCollection */
93
+ /** @var \Magento\SalesRule\Model\ResourceModel \Rule\Collection $ruleCollection */
94
94
$ ruleCollection = $ this ->ruleCollectionFactory ->create ();
95
95
$ ruleCollection ->addFilter ('name ' , $ row ['name ' ]);
96
96
if ($ ruleCollection ->count () > 0 ) {
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \SwatchesSampleData \Model ;
7
7
8
- use Magento \Catalog \Model \Resource \Eav \Attribute as eavAttribute ;
8
+ use Magento \Catalog \Model \ResourceModel \Eav \Attribute as eavAttribute ;
9
9
10
10
/**
11
11
* Class Swatches
@@ -36,7 +36,7 @@ class Swatches
36
36
];
37
37
38
38
/**
39
- * @var \Magento\Eav\Model\Resource \Entity\Attribute\Option\CollectionFactory
39
+ * @var \Magento\Eav\Model\ResourceModel \Entity\Attribute\Option\CollectionFactory
40
40
*/
41
41
protected $ attrOptionCollectionFactory ;
42
42
@@ -46,11 +46,11 @@ class Swatches
46
46
protected $ eavConfig ;
47
47
48
48
/**
49
- * @param \Magento\Eav\Model\Resource \Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory
49
+ * @param \Magento\Eav\Model\ResourceModel \Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory
50
50
* @param \Magento\Eav\Model\Config $eavConfig
51
51
*/
52
52
public function __construct (
53
- \Magento \Eav \Model \Resource \Entity \Attribute \Option \CollectionFactory $ attrOptionCollectionFactory ,
53
+ \Magento \Eav \Model \ResourceModel \Entity \Attribute \Option \CollectionFactory $ attrOptionCollectionFactory ,
54
54
\Magento \Eav \Model \Config $ eavConfig
55
55
) {
56
56
$ this ->attrOptionCollectionFactory = $ attrOptionCollectionFactory ;
You can’t perform that action at this time.
0 commit comments