rulePrices[$id]) ? $this->rulePrices[$id] : false; } /** * @param string $id * @return bool */ public function hasRulePrice($id) { return isset($this->rulePrices[$id]); } /** * @param string $id * @param float $price * @return void */ public function setRulePrice($id, $price) { $this->rulePrices[$id] = $price; } }