Esempio n. 1
0
 /**
  * Compares the properties of the given price item with its own one.
  *
  * This method compare only the essential price properties:
  * * Value
  * * Costs
  * * Rebate
  * * Taxrate
  * * Quantity
  * * Currency ID
  *
  * All other item properties are not compared.
  *
  * @param \Aimeos\MShop\Price\Item\Iface $price Price item to compare with
  * @return boolean True if equal, false if not
  * @since 2014.09
  */
 public function compare(\Aimeos\MShop\Price\Item\Iface $price)
 {
     if ($this->getValue() === $price->getValue() && $this->getCosts() === $price->getCosts() && $this->getRebate() === $price->getRebate() && $this->getTaxrate() === $price->getTaxrate() && $this->getQuantity() === $price->getQuantity() && $this->getCurrencyId() === $price->getCurrencyId()) {
         return true;
     }
     return false;
 }