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