/** * {@inheritdoc} */ public function removeRate(TaxRateInterface $rate) { unset($this->rates[array_search($rate->getId(), $this->rates)]); return $this; }
/** * {@inheritdoc} */ public function removeRate(TaxRateInterface $rate) { $index = array_search($rate->getId(), $this->rates); if ($index !== FALSE) { unset($this->rates[$index]); $this->loadedRates = []; } return $this; }
/** * {@inheritdoc} */ public function setRate(TaxRateInterface $rate) { $this->rate = $rate->getId(); return $this; }