src/snac/data/Place.php
/**
     *
     * {@inheritDoc}
     *
     * @param \snac\data\Place $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\Place $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 \ Place $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\Place))
            return false;
        if (! parent::equals($other, $strict, $checkSubcomponents))
            return false;
        if ($this->getOriginal() != $other->getOriginal())
            return false;
        if ($this->getScore() != $other->getScore())
            return false;
        if ($this->getConfirmed() != $other->getConfirmed())
            return false;
        if ($this->getNote() != $other->getNote())
            return false;
        if (($this->getType() != null && ! $this->getType()->equals($other->getType())) ||
                 ($this->getType() == null && $other->getType() != null))
            return false;
        if (($this->getRole() != null && ! $this->getRole()->equals($other->getRole())) ||
                 ($this->getRole() == null && $other->getRole() != null))
            return false;
        if (($this->getGeoTerm() != null && ! $this->getGeoTerm()->equals($other->getGeoTerm())) ||
                 ($this->getGeoTerm() == null && $other->getGeoTerm() != null))
            return false;
        if (!$this->checkArrayEqual($this->getAddress(), $other->getAddress(), $strict, $checkSubcomponents))
            return false;
        return true;
    }
public function equals ( $ other , $ strict = true , $ checkSubcomponents = true ) { if ( $ other == null || ! ( $ other instanceof \ snac \ data \ Place ) ) return false ; if ( ! parent :: equals ( $ other , $ strict , $ checkSubcomponents ) ) return false ; if ( $ this -> getOriginal ( ) != $ other -> getOriginal ( ) ) return false ; if ( $ this -> getScore ( ) != $ other -> getScore ( ) ) return false ; if ( $ this -> getConfirmed ( ) != $ other -> getConfirmed ( ) ) return false ; if ( $ this -> getNote ( ) != $ other -> getNote ( ) ) return false ; if ( ( $ this -> getType ( ) != null && ! $ this -> getType ( ) -> equals ( $ other -> getType ( ) ) ) || ( $ this -> getType ( ) == null && $ other -> getType ( ) != null ) ) return false ; if ( ( $ this -> getRole ( ) != null && ! $ this -> getRole ( ) -> equals ( $ other -> getRole ( ) ) ) || ( $ this -> getRole ( ) == null && $ other -> getRole ( ) != null ) ) return false ; if ( ( $ this -> getGeoTerm ( ) != null && ! $ this -> getGeoTerm ( ) -> equals ( $ other -> getGeoTerm ( ) ) ) || ( $ this -> getGeoTerm ( ) == null && $ other -> getGeoTerm ( ) != null ) ) return false ; if ( ! $ this -> checkArrayEqual ( $ this -> getAddress ( ) , $ other -> getAddress ( ) , $ strict , $ checkSubcomponents ) ) return false ; return true ; }
{@inheritDoc}
 @param \snac\data\Place $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 \ Place $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