11
11
*/
12
12
namespace Magento \Catalog \Block \Adminhtml \Category \Tab ;
13
13
14
+ use Magento \Backend \Block \Template \Context ;
14
15
use Magento \Backend \Block \Widget \Grid ;
15
16
use Magento \Backend \Block \Widget \Grid \Column ;
16
17
use Magento \Backend \Block \Widget \Grid \Extended ;
18
+ use Magento \Backend \Helper \Data ;
17
19
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
18
20
use Magento \Catalog \Model \Product \Visibility ;
21
+ use Magento \Catalog \Model \ProductFactory ;
19
22
use Magento \Framework \App \ObjectManager ;
23
+ use Magento \Framework \Registry ;
20
24
21
- /**
22
- * Class Product in category grid
23
- */
24
- class Product extends \Magento \Backend \Block \Widget \Grid \Extended
25
+ class Product extends Extended
25
26
{
26
27
/**
27
- * Core registry model
28
- *
29
- * @var \Magento\Framework\Registry
28
+ * @var Registry
30
29
*/
31
30
protected $ _coreRegistry = null ;
32
31
33
32
/**
34
- * @var \Magento\Catalog\Model\ ProductFactory
33
+ * @var ProductFactory
35
34
*/
36
35
protected $ _productFactory ;
37
36
@@ -46,19 +45,19 @@ class Product extends \Magento\Backend\Block\Widget\Grid\Extended
46
45
private $ visibility ;
47
46
48
47
/**
49
- * @param \Magento\Backend\Block\Template\ Context $context
50
- * @param \Magento\Backend\Helper\ Data $backendHelper
51
- * @param \Magento\Catalog\Model\ ProductFactory $productFactory
52
- * @param \Magento\Framework\ Registry $coreRegistry
48
+ * @param Context $context
49
+ * @param Data $backendHelper
50
+ * @param ProductFactory $productFactory
51
+ * @param Registry $coreRegistry
53
52
* @param array $data
54
53
* @param Visibility|null $visibility
55
54
* @param Status|null $status
56
55
*/
57
56
public function __construct (
58
- \ Magento \ Backend \ Block \ Template \ Context $ context ,
59
- \ Magento \ Backend \ Helper \ Data $ backendHelper ,
60
- \ Magento \ Catalog \ Model \ ProductFactory $ productFactory ,
61
- \ Magento \ Framework \ Registry $ coreRegistry ,
57
+ Context $ context ,
58
+ Data $ backendHelper ,
59
+ ProductFactory $ productFactory ,
60
+ Registry $ coreRegistry ,
62
61
array $ data = [],
63
62
Visibility $ visibility = null ,
64
63
Status $ status = null
0 commit comments