Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RulePricesStorage.php
Go to the documentation of this file.
1 <?php
8 
10 {
17  private $rulePrices = [];
18 
23  public function getRulePrice($id)
24  {
25  return $this->rulePrices[$id] ?? false;
26  }
27 
32  public function hasRulePrice($id)
33  {
34  return isset($this->rulePrices[$id]);
35  }
36 
42  public function setRulePrice($id, $price)
43  {
44  $this->rulePrices[$id] = $price;
45  }
46 }
$id
Definition: fieldset.phtml:14
$price