Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BasePriceModifier.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
15 {
19  private $priceModifiers;
20 
24  public function __construct(array $priceModifiers)
25  {
26  $this->priceModifiers = $priceModifiers;
27  }
28 
32  public function modifyPrice(IndexTableStructure $priceTable, array $entityIds = []) : void
33  {
34  foreach ($this->priceModifiers as $priceModifier) {
35  $priceModifier->modifyPrice($priceTable, $entityIds);
36  }
37  }
38 }
modifyPrice(IndexTableStructure $priceTable, array $entityIds=[])