public function sameValueAs(ValueObjectInterface $address)
    {
        if (false === Util::classEquals($this, $address)) {
            return false;
        }

        return $this->getName()->sameValueAs($address->getName())             &&
               $this->getStreet()->sameValueAs($address->getStreet())         &&
               $this->getDistrict()->sameValueAs($address->getDistrict())     &&
               $this->getCity()->sameValueAs($address->getCity())             &&
               $this->getRegion()->sameValueAs($address->getRegion())         &&
               $this->getPostalCode()->sameValueAs($address->getPostalCode()) &&
               $this->getCountry()->sameValueAs($address->getCountry())
        ;
    }
public function sameValueAs(ValueObjectInterface $address)
    {
        if (false === Util::classEquals($this, $address)) {
            return false;
        }

        return $this->getName()->sameValueAs($address->getName())             &&
               $this->getStreet()->sameValueAs($address->getStreet())         &&
               $this->getDistrict()->sameValueAs($address->getDistrict())     &&
               $this->getCity()->sameValueAs($address->getCity())             &&
               $this->getRegion()->sameValueAs($address->getRegion())         &&
               $this->getPostalCode()->sameValueAs($address->getPostalCode()) &&
               $this->getCountry()->sameValueAs($address->getCountry())
        ;
    }
public function sameValueAs ( ValueObjectInterface $ address ) { if ( false === Util :: classEquals ( $ this , $ address ) ) { return false ; } return $ this -> getName ( ) -> sameValueAs ( $ address -> getName ( ) ) && $ this -> getStreet ( ) -> sameValueAs ( $ address -> getStreet ( ) ) && $ this -> getDistrict ( ) -> sameValueAs ( $ address -> getDistrict ( ) ) && $ this -> getCity ( ) -> sameValueAs ( $ address -> getCity ( ) ) && $ this -> getRegion ( ) -> sameValueAs ( $ address -> getRegion ( ) ) && $ this -> getPostalCode ( ) -> sameValueAs ( $ address -> getPostalCode ( ) ) && $ this -> getCountry ( ) -> sameValueAs ( $ address -> getCountry ( ) ) ; }
Tells whether two Address are equal

@param  ValueObjectInterface $address
@return bool
Tells whether two Address are equal