public function equals(ValueObjectContract $valueObject)
    {
        foreach (get_object_vars($this) as $name => $value) {
            if ($this->{$name} !== $valueObject->{$name}) {
                return false;
            }
        }

        return true;
    }
public function equals(ValueObjectContract $valueObject)
    {
        foreach (get_object_vars($this) as $name => $value) {
            if ($this->{$name} !== $valueObject->{$name}) {
                return false;
            }
        }

        return true;
    }
public function equals ( ValueObjectContract $ valueObject ) { foreach ( get_object_vars ( $ this ) as $ name => $ value ) { if ( $ this -> { $ name } !== $ valueObject -> { $ name } ) { return false ; } } return true ; }
Compare two value objects.

@param \ProAI\Datamapper\Contracts\ValueObject $valueObject
@return boolean
Compare two value objects .