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

        return $this->getName()->sameValueAs($street->getName()) &&
               $this->getNumber()->sameValueAs($street->getNumber()) &&
               $this->getElements()->sameValueAs($street->getElements());
        ;
    }
public function sameValueAs(ValueObjectInterface $street)
    {
        if (false === Util::classEquals($this, $street)) {
            return false;
        }

        return $this->getName()->sameValueAs($street->getName()) &&
               $this->getNumber()->sameValueAs($street->getNumber()) &&
               $this->getElements()->sameValueAs($street->getElements());
        ;
    }
public function sameValueAs ( ValueObjectInterface $ street ) { if ( false === Util :: classEquals ( $ this , $ street ) ) { return false ; } return $ this -> getName ( ) -> sameValueAs ( $ street -> getName ( ) ) && $ this -> getNumber ( ) -> sameValueAs ( $ street -> getNumber ( ) ) && $ this -> getElements ( ) -> sameValueAs ( $ street -> getElements ( ) ) ; ; }
Tells whether two Street objects are equal
@param  ValueObjectInterface $street
@return bool
Tells whether two Street objects are equal