Skip to content

Commit 8d0f3c9

Browse files
committed
Update construct and phpdoc
1 parent 4196bf5 commit 8d0f3c9

File tree

1 file changed

+18
-15
lines changed
  • app/code/Magento/CatalogRule/Model/Rule

1 file changed

+18
-15
lines changed

app/code/Magento/CatalogRule/Model/Rule/Job.php

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
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
*
@@ -18,13 +22,8 @@
1822
* @method bool hasSuccess()
1923
* @method bool hasError()
2024
*
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+
*
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
/**

0 commit comments

Comments
 (0)