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