Пример #1
0
 /**
  * Compares the properties of the given order product item with its own ones.
  *
  * @param \Aimeos\MShop\Order\Item\Base\Product\Iface $item Order product item
  * @return boolean True if the item properties are equal, false if not
  * @since 2014.09
  */
 public function compare(\Aimeos\MShop\Order\Item\Base\Product\Iface $item)
 {
     if ($this->getFlags() === $item->getFlags() && $this->getName() === $item->getName() && $this->getProductCode() === $item->getProductCode() && $this->getSupplierCode() === $item->getSupplierCode() && $this->getPrice()->compare($item->getPrice()) === true) {
         return true;
     }
     return false;
 }