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