/** * @param OrderItem $orderItem * @return Boolean **/ function hasSameContent(OrderItem $orderItem) { $parentIsTheSame = parent::hasSameContent($orderItem); return $parentIsTheSame && is_a($orderItem, $this->class); }
function hasSameContent($orderItem) { $equals = parent::hasSameContent($orderItem); return $equals && $orderItem instanceof Product_OrderItem && $this->_productID == $orderItem->_productID && $this->_productVersion == $orderItem->_productVersion; }
/** *@return Boolean **/ function hasSameContent($orderItem) { $parentIsTheSame = parent::hasSameContent($orderItem); return $parentIsTheSame && $orderItem instanceof $this->class; }