protected function setOption($name, $value, $reset = false) {
        $changed = !isset($this->options[$name]) || $this->options[$name] !== $value;

        if ($changed && $reset) {
            $this->data = null;
        }

        $this->options[$name] = $value;
        return $this;
    }
protected function setOption($name, $value, $reset = false) {
        $changed = !isset($this->options[$name]) || $this->options[$name] !== $value;

        if ($changed && $reset) {
            $this->data = null;
        }

        $this->options[$name] = $value;
        return $this;
    }
protected function setOption ( $ name , $ value , $ reset = false ) { $ changed = ! isset ( $ this -> options [ $ name ] ) || $ this -> options [ $ name ] !== $ value ; if ( $ changed && $ reset ) { $ this -> data = null ; } $ this -> options [ $ name ] = $ value ; return $ this ; }
Set a query option.

@param string $name The name of the option to set.
@param mixed $value The new value of the option.
@param bool $reset Pass **true** and the data will be queried again if the option value has changed.
@return $this
Set a query option .