src/snac/data/Constellation.php
/**
     *
     * {@inheritDoc}
     *
     * @param \snac\data\Constellation $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\Constellation $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 \ Constellation $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\Constellation))
            return false;
        if (! parent::equals($other, $strict, $checkSubcomponents))
            return false;
        if ($this->getArk() != $other->getArk())
            return false;
        if (($this->getEntityType() != null && ! $this->getEntityType()->equals($other->getEntityType())) ||
                 ($this->getEntityType() == null && $other->getEntityType() != null))
            return false;
        if (!$this->checkArrayEqual($this->getOtherRecordIDs(), $other->getOtherRecordIDs(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getEntityIDs(), $other->getEntityIDs(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getSources(), $other->getSources(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getLegalStatuses(), $other->getLegalStatuses(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getConventionDeclarations(), $other->getConventionDeclarations(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getLanguagesUsed(), $other->getLanguagesUsed(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getNameEntries(), $other->getNameEntries(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getOccupations(), $other->getOccupations(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getBiogHistList(), $other->getBiogHistList(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getRelations(), $other->getRelations(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getResourceRelations(), $other->getResourceRelations(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getActivities(), $other->getActivities(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getPlaces(), $other->getPlaces(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getSubjects(), $other->getSubjects(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getNationalities(), $other->getNationalities(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getGenders(), $other->getGenders(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getGeneralContexts(), $other->getGeneralContexts(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getStructureOrGenealogies(), $other->getStructureOrGenealogies(), $strict, $checkSubcomponents))
            return false;
        if (!$this->checkArrayEqual($this->getMandates(), $other->getMandates(), $strict, $checkSubcomponents))
            return false;
        return true;
    }
public function equals ( $ other , $ strict = true , $ checkSubcomponents = true ) { if ( $ other == null || ! ( $ other instanceof \ snac \ data \ Constellation ) ) return false ; if ( ! parent :: equals ( $ other , $ strict , $ checkSubcomponents ) ) return false ; if ( $ this -> getArk ( ) != $ other -> getArk ( ) ) return false ; if ( ( $ this -> getEntityType ( ) != null && ! $ this -> getEntityType ( ) -> equals ( $ other -> getEntityType ( ) ) ) || ( $ this -> getEntityType ( ) == null && $ other -> getEntityType ( ) != null ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getOtherRecordIDs ( ) , $ other -> getOtherRecordIDs ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getEntityIDs ( ) , $ other -> getEntityIDs ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getSources ( ) , $ other -> getSources ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getLegalStatuses ( ) , $ other -> getLegalStatuses ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getConventionDeclarations ( ) , $ other -> getConventionDeclarations ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getLanguagesUsed ( ) , $ other -> getLanguagesUsed ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getNameEntries ( ) , $ other -> getNameEntries ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getOccupations ( ) , $ other -> getOccupations ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getBiogHistList ( ) , $ other -> getBiogHistList ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getRelations ( ) , $ other -> getRelations ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getResourceRelations ( ) , $ other -> getResourceRelations ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getActivities ( ) , $ other -> getActivities ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getPlaces ( ) , $ other -> getPlaces ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getSubjects ( ) , $ other -> getSubjects ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getNationalities ( ) , $ other -> getNationalities ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getGenders ( ) , $ other -> getGenders ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getGeneralContexts ( ) , $ other -> getGeneralContexts ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getStructureOrGenealogies ( ) , $ other -> getStructureOrGenealogies ( ) , $ strict , $ checkSubcomponents ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getMandates ( ) , $ other -> getMandates ( ) , $ strict , $ checkSubcomponents ) ) return false ; return true ; }
{@inheritDoc}
 @param \snac\data\Constellation $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 \ Constellation $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
/**
         * Currently, we are not checking the maintenance events or images for equality
        *    if ($this->getMaintenanceAgency() != $other->getMaintenanceAgency())
        *        return false;
        *    if (($this->getMaintenanceStatus() != null && ! $this->getMaintenanceStatus()->equals($other->getMaintenanceStatus(), $strict, $checkSubcomponents)) ||
        *         ($this->getMaintenanceStatus() == null && $other->getMaintenanceStatus() != null))
        *        return false;
        *    if (!$this->checkArrayEqual($this->getMaintenanceEvents(), $other->getMaintenanceEvents(), $strict, $checkSubcomponents))
        *        return false;
        *    if (!$this->checkArrayEqual($this->getImages(), $other->getImages(), $strict, $checkSubcomponents))
        *        return false;
        **/