File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed
app/code/Magento/CatalogRule/Model/Rule Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change 8
8
* See COPYING.txt for license details.
9
9
*/
10
10
11
+ namespace Magento \CatalogRule \Model \Rule ;
12
+
13
+ use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
14
+
11
15
/**
12
16
* Catalog Rule job model
13
17
*
18
22
* @method bool hasSuccess()
19
23
* @method bool hasError()
20
24
*
21
- * @author Magento Core Team <core@magentocommerce.com>
22
- */
23
- namespace Magento \CatalogRule \Model \Rule ;
24
-
25
- use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
26
-
27
- /**
25
+ * @author Magento Core Team <core@magentocommerce.com>
26
+ *
28
27
* @api
29
28
* @since 100.0.2
30
29
*/
@@ -35,14 +34,18 @@ class Job extends \Magento\Framework\DataObject
35
34
*/
36
35
protected $ ruleProcessor ;
37
36
38
- /**
39
- * Basic object initialization
40
- *
41
- * @param RuleProductProcessor $ruleProcessor
42
- */
43
- public function __construct (RuleProductProcessor $ ruleProcessor )
44
- {
45
- $ this ->ruleProcessor = $ ruleProcessor ;
37
+ /**
38
+ * Basic object initialization
39
+ *
40
+ * @param RuleProductProcessor $ruleProcessor
41
+ * @param array $data
42
+ */
43
+ public function __construct (
44
+ RuleProductProcessor $ ruleProcessor ,
45
+ array $ data = []
46
+ ) {
47
+ $ this ->ruleProcessor = $ ruleProcessor ;
48
+ parent ::__construct ($ data );
46
49
}
47
50
48
51
/**
You can’t perform that action at this time.
0 commit comments