src/snac/data/ConstellationRelation.php
/**
     *
     * {@inheritDoc}
     *
     * @param \snac\data\ConstellationRelation $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\ConstellationRelation $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 \ ConstellationRelation $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\ConstellationRelation))
            return false;
        if (! parent::equals($other, $strict, $checkSubcomponents))
            return false;
        if ($this->getSourceArkID() != $other->getSourceArkID() ||
                $this->getTargetConstellation() != $other->getTargetConstellation() ||
                $this->getTargetArkID() != $other->getTargetArkID() ||
                $this->getContent() != $other->getContent() ||
                $this->getNote() != $other->getNote())
            return false;
        if ($strict && ($this->getSourceConstellation() != $other->getSourceConstellation() ||
                $this->getTargetConstellation() != $other->getTargetConstellation()))
            return false;
        if (($this->getType() != null && !($this->getType()->equals($other->getType()))) ||
                ($this->getType() == null && $other->getType() != null))
            return false;
        if (($this->getAltType() != null && !($this->getAltType()->equals($other->getAltType()))) ||
                ($this->getAltType() == null && $other->getAltType() != null))
            return false;
        if (($this->getCpfRelationType() != null && !($this->getCpfRelationType()->equals($other->getCpfRelationType()))) ||
                ($this->getCpfRelationType() == null && $other->getCpfRelationType() != null))
            return false;
        return true;
    }
public function equals ( $ other , $ strict = true , $ checkSubcomponents = true ) { if ( $ other == null || ! ( $ other instanceof \ snac \ data \ ConstellationRelation ) ) return false ; if ( ! parent :: equals ( $ other , $ strict , $ checkSubcomponents ) ) return false ; if ( $ this -> getSourceArkID ( ) != $ other -> getSourceArkID ( ) || $ this -> getTargetConstellation ( ) != $ other -> getTargetConstellation ( ) || $ this -> getTargetArkID ( ) != $ other -> getTargetArkID ( ) || $ this -> getContent ( ) != $ other -> getContent ( ) || $ this -> getNote ( ) != $ other -> getNote ( ) ) return false ; if ( $ strict && ( $ this -> getSourceConstellation ( ) != $ other -> getSourceConstellation ( ) || $ this -> getTargetConstellation ( ) != $ other -> getTargetConstellation ( ) ) ) return false ; if ( ( $ this -> getType ( ) != null && ! ( $ this -> getType ( ) -> equals ( $ other -> getType ( ) ) ) ) || ( $ this -> getType ( ) == null && $ other -> getType ( ) != null ) ) return false ; if ( ( $ this -> getAltType ( ) != null && ! ( $ this -> getAltType ( ) -> equals ( $ other -> getAltType ( ) ) ) ) || ( $ this -> getAltType ( ) == null && $ other -> getAltType ( ) != null ) ) return false ; if ( ( $ this -> getCpfRelationType ( ) != null && ! ( $ this -> getCpfRelationType ( ) -> equals ( $ other -> getCpfRelationType ( ) ) ) ) || ( $ this -> getCpfRelationType ( ) == null && $ other -> getCpfRelationType ( ) != null ) ) return false ; return true ; }
{@inheritDoc}
 @param \snac\data\ConstellationRelation $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 \ ConstellationRelation $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
// If strict checking is off, then we might not have target or source constellation IDs.