src/snac/data/Resource.php
/**
     *
     * {@inheritDoc}
     *
     * @param \snac\data\ResourceRelation $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\ResourceRelation $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 \ ResourceRelation $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\Resource))
            return false;
        if (! parent::equals($other, $strict, $checkSubcomponents))
            return false;
        if ($this->getTitle() != $other->getTitle())
            return false;
        if ($this->getAbstract() != $other->getAbstract())
            return false;
        if ($this->getExtent() != $other->getExtent())
            return false;
        if ($this->getSource() != $other->getSource())
            return false;
        if ($this->getLink() != $other->getLink())
            return false;
        if (($this->getDocumentType() != null && ! $this->getDocumentType()->equals($other->getDocumentType())) ||
                 ($this->getDocumentType() == null && $other->getDocumentType() != null))
            return false;
        if (($this->getEntryType() != null && ! $this->getEntryType()->equals($other->getEntryType())) ||
                 ($this->getEntryType() == null && $other->getEntryType() != null))
            return false;
        if (($this->getLinkType() != null && ! $this->getLinkType()->equals($other->getLinkType())) ||
                 ($this->getLinkType() == null && $other->getLinkType() != null))
            return false;
        if (($this->getRepository() != null && ! $this->getRepository()->equals($other->getRepository())) ||
                 ($this->getRepository() == null && $other->getRepository() != null))
            return false;
        return true;
    }
public function equals ( $ other , $ strict = true , $ checkSubcomponents = true ) { if ( $ other == null || ! ( $ other instanceof \ snac \ data \ Resource ) ) return false ; if ( ! parent :: equals ( $ other , $ strict , $ checkSubcomponents ) ) return false ; if ( $ this -> getTitle ( ) != $ other -> getTitle ( ) ) return false ; if ( $ this -> getAbstract ( ) != $ other -> getAbstract ( ) ) return false ; if ( $ this -> getExtent ( ) != $ other -> getExtent ( ) ) return false ; if ( $ this -> getSource ( ) != $ other -> getSource ( ) ) return false ; if ( $ this -> getLink ( ) != $ other -> getLink ( ) ) return false ; if ( ( $ this -> getDocumentType ( ) != null && ! $ this -> getDocumentType ( ) -> equals ( $ other -> getDocumentType ( ) ) ) || ( $ this -> getDocumentType ( ) == null && $ other -> getDocumentType ( ) != null ) ) return false ; if ( ( $ this -> getEntryType ( ) != null && ! $ this -> getEntryType ( ) -> equals ( $ other -> getEntryType ( ) ) ) || ( $ this -> getEntryType ( ) == null && $ other -> getEntryType ( ) != null ) ) return false ; if ( ( $ this -> getLinkType ( ) != null && ! $ this -> getLinkType ( ) -> equals ( $ other -> getLinkType ( ) ) ) || ( $ this -> getLinkType ( ) == null && $ other -> getLinkType ( ) != null ) ) return false ; if ( ( $ this -> getRepository ( ) != null && ! $ this -> getRepository ( ) -> equals ( $ other -> getRepository ( ) ) ) || ( $ this -> getRepository ( ) == null && $ other -> getRepository ( ) != null ) ) return false ; return true ; }
{@inheritDoc}
 @param \snac\data\ResourceRelation $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 \ ResourceRelation $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
// Equals cannot check the Origination Names and Languages, since some times // for performance reasons we do not grab them. /**
        if (!$this->checkArrayEqual($this->getOriginationNames(), $other->getOriginationNames(), $strict, $checkSubcomponents)) {
            return false;
        }
        if (!$this->checkArrayEqual($this->getLanguages(), $other->getLanguages(), $strict, $checkSubcomponents))
            return false;
        **/