コード例 #1
0
 /**
  * @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;
 }