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 88 * See COPYING.txt for license details.
99 */
1010
11+ namespace Magento \CatalogRule \Model \Rule ;
12+
13+ use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
14+
1115/**
1216 * Catalog Rule job model
1317 *
1822 * @method bool hasSuccess()
1923 * @method bool hasError()
2024 *
21- * @author Magento Core Team <[email protected] > 22- */
23- namespace Magento \CatalogRule \Model \Rule ;
24-
25- use Magento \CatalogRule \Model \Indexer \Rule \RuleProductProcessor ;
26-
27- /**
25+ * @author Magento Core Team <[email protected] > 26+ *
2827 * @api
2928 * @since 100.0.2
3029 */
@@ -35,14 +34,18 @@ class Job extends \Magento\Framework\DataObject
3534 */
3635 protected $ ruleProcessor ;
3736
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 );
4649 }
4750
4851 /**
You can’t perform that action at this time.
0 commit comments