12
12
use \Magento \Catalog \Model \ResourceModel \Product \Collection as ProductCollection ;
13
13
use \Magento \Catalog \Model \ResourceModel \Eav \Attribute as EavAttribute ;
14
14
use \Magento \Store \Model \StoreManagerInterface ;
15
- use \Magento \Catalog \Api \ProductRepositoryInterface ;
16
- use \Magento \Framework \Locale \FormatInterface ;
17
- use \Magento \Catalog \Model \ResourceModel \Category ;
18
- use \Magento \Eav \Model \ResourceModel \Entity \Attribute \Set \Collection as AttributeSetCollection ;
19
- use \Magento \Catalog \Model \ProductFactory ;
20
- use \Magento \Eav \Model \Config ;
21
- use \Magento \Rule \Model \Condition \Context ;
22
- use \Magento \Backend \Helper \Data as BackendData ;
23
15
24
16
/**
25
17
* Class Product
@@ -46,31 +38,31 @@ class Product extends \Magento\Rule\Model\Condition\Product\AbstractProduct
46
38
protected $ storeManager ;
47
39
48
40
/**
49
- * @param Context $context
50
- * @param BackendData $backendData
51
- * @param Config $config
52
- * @param ProductFactory $productFactory
53
- * @param ProductRepositoryInterface $productRepository
41
+ * @param \Magento\Rule\Model\Condition\ Context $context
42
+ * @param \Magento\Backend\Helper\Data $backendData
43
+ * @param \Magento\Eav\Model\ Config $config
44
+ * @param \Magento\Catalog\Model\ ProductFactory $productFactory
45
+ * @param \Magento\Catalog\Api\ ProductRepositoryInterface $productRepository
54
46
* @param \Magento\Catalog\Model\ResourceModel\Product $productResource
55
- * @param AttributeSetCollection $attrSetCollection
56
- * @param FormatInterface $localeFormat
47
+ * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection $attrSetCollection
48
+ * @param \Magento\Framework\Locale\ FormatInterface $localeFormat
57
49
* @param StoreManagerInterface $storeManager
58
50
* @param array $data
59
- * @param Category $category
51
+ * @param \Magento\Catalog\Model\ResourceModel\ Category $category
60
52
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
61
53
*/
62
54
public function __construct (
63
- Context $ context ,
64
- BackendData $ backendData ,
65
- Config $ config ,
66
- ProductFactory $ productFactory ,
67
- ProductRepositoryInterface $ productRepository ,
55
+ \ Magento \ Rule \ Model \ Condition \ Context $ context ,
56
+ \ Magento \ Backend \ Helper \ Data $ backendData ,
57
+ \ Magento \ Eav \ Model \ Config $ config ,
58
+ \ Magento \ Catalog \ Model \ ProductFactory $ productFactory ,
59
+ \ Magento \ Catalog \ Api \ ProductRepositoryInterface $ productRepository ,
68
60
\Magento \Catalog \Model \ResourceModel \Product $ productResource ,
69
- AttributeSetCollection $ attrSetCollection ,
70
- FormatInterface $ localeFormat ,
61
+ \ Magento \ Eav \ Model \ ResourceModel \ Entity \ Attribute \ Set \ Collection $ attrSetCollection ,
62
+ \ Magento \ Framework \ Locale \ FormatInterface $ localeFormat ,
71
63
StoreManagerInterface $ storeManager ,
72
64
array $ data = [],
73
- Category $ category = null
65
+ \ Magento \ Catalog \ Model \ ResourceModel \ Category $ category = null
74
66
) {
75
67
$ this ->storeManager = $ storeManager ;
76
68
parent ::__construct (
0 commit comments