src/snac/data/MaintenanceEvent.php
/**
     *
     * {@inheritDoc}
     *
     * @param \snac\data\Language $other Other object
     * @param boolean $strict optional Whether or not to check id, version, and operation
     * @param boolean $checkSubcomponents optional Whether or not to check SNACControlMetadata, nameEntries contributors & components
     * @return boolean true on equality, false otherwise
     *
     * @see \snac\data\AbstractData::equals()
     */
@param \snac\data\Language $other Other object
@param boolean $strict optional Whether or not to check id, version, and operation
@param boolean $checkSubcomponents optional Whether or not to check SNACControlMetadata, nameEntries contributors & components
@return boolean true on equality, false otherwise


@param \ snac \ data \ Language $other Other object @param boolean $strict optional Whether or not to check id version and operation @param boolean $checkSubcomponents optional Whether or not to check SNACControlMetadata nameEntries contributors & components @return boolean true on equality false otherwise
public function equals($other, $strict = true, $checkSubcomponents = true) {
        if ($other == null || ! ($other instanceof \snac\data\MaintenanceEvent))
            return false;
        if (! parent::equals($other, $strict, $checkSubcomponents))
            return false;
        if ($this->getEventDateTime() != $other->getEventDateTime())
            return false;
        if ($this->getStandardDateTime() != $other->getStandardDateTime())
            return false;
        if ($this->getAgent() != $other->getAgent())
            return false;
        if ($this->getEventDescription() != $other->getEventDescription())
            return false;
        if (($this->getEventType() != null && ! $this->getEventType()->equals($other->getEventType())) ||
                 ($this->getEventType() == null && $other->getEventType() != null))
            return false;
        if (($this->getAgentType() != null && ! $this->getAgentType()->equals($other->getAgentType())) ||
                 ($this->getAgentType() == null && $other->getAgentType() != null))
            return false;
        return true;
    }
public function equals ( $ other , $ strict = true , $ checkSubcomponents = true ) { if ( $ other == null || ! ( $ other instanceof \ snac \ data \ MaintenanceEvent ) ) return false ; if ( ! parent :: equals ( $ other , $ strict , $ checkSubcomponents ) ) return false ; if ( $ this -> getEventDateTime ( ) != $ other -> getEventDateTime ( ) ) return false ; if ( $ this -> getStandardDateTime ( ) != $ other -> getStandardDateTime ( ) ) return false ; if ( $ this -> getAgent ( ) != $ other -> getAgent ( ) ) return false ; if ( $ this -> getEventDescription ( ) != $ other -> getEventDescription ( ) ) return false ; if ( ( $ this -> getEventType ( ) != null && ! $ this -> getEventType ( ) -> equals ( $ other -> getEventType ( ) ) ) || ( $ this -> getEventType ( ) == null && $ other -> getEventType ( ) != null ) ) return false ; if ( ( $ this -> getAgentType ( ) != null && ! $ this -> getAgentType ( ) -> equals ( $ other -> getAgentType ( ) ) ) || ( $ this -> getAgentType ( ) == null && $ other -> getAgentType ( ) != null ) ) return false ; return true ; }
{@inheritDoc}
 @param \snac\data\Language $other Other object
 @param boolean $strict optional Whether or not to check id, version, and operation
 @param boolean $checkSubcomponents optional Whether or not to check SNACControlMetadata, nameEntries contributors & components
 @return boolean true on equality, false otherwise
{ @inheritDoc } @param \ snac \ data \ Language $other Other object @param boolean $strict optional Whether or not to check id version and operation @param boolean $checkSubcomponents optional Whether or not to check SNACControlMetadata nameEntries contributors & components @return boolean true on equality false otherwise