Skip to content

Commit ad636b3

Browse files
Eugene ShakhsuvarovEugene Shakhsuvarov
authored andcommitted
Merge branch 'Fixed-30588' of github.com:niravkrish/magento2 into 2.4-develop-prs
2 parents 65fef45 + 0bc5761 commit ad636b3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ class Collection extends \Magento\Rule\Model\ResourceModel\Rule\Collection\Abstr
2929
*/
3030
protected $_associatedEntitiesMap;
3131

32+
/**
33+
* SaleRule Event prefix
34+
*
35+
* @var string
36+
*/
37+
protected $_eventPrefix = 'salesrule_rule_collection';
38+
39+
/**
40+
* SaleRule Event object
41+
*
42+
* @var string
43+
*/
44+
protected $_eventObject = 'rule_collection';
45+
3246
/**
3347
* @var \Magento\SalesRule\Model\ResourceModel\Rule\DateApplier
3448
* @since 100.1.0
@@ -427,6 +441,7 @@ public function addCustomerGroupFilter($customerGroupId)
427441
return $this;
428442
}
429443

444+
// phpcs:disable
430445
/**
431446
* Getter for _associatedEntitiesMap property
432447
*
@@ -437,6 +452,7 @@ private function getAssociatedEntitiesMap()
437452
{
438453
if (!$this->_associatedEntitiesMap) {
439454
$this->_associatedEntitiesMap = \Magento\Framework\App\ObjectManager::getInstance()
455+
// phpstan:ignore "Class Magento\SalesRule\Model\ResourceModel\Rule\AssociatedEntityMap not found."
440456
->get(\Magento\SalesRule\Model\ResourceModel\Rule\AssociatedEntityMap::class)
441457
->getData();
442458
}
@@ -458,4 +474,5 @@ private function getDateApplier()
458474

459475
return $this->dateApplier;
460476
}
477+
// phpcs:enable
461478
}

0 commit comments

Comments
 (0)