protected function setOption(int $option, bool $bool) : void
    {
        if ($bool) {
            $this->options |= $option;
        } else {
            $this->options &= ~ $option;
        }
    }
protected function setOption(int $option, bool $bool) : void
    {
        if ($bool) {
            $this->options |= $option;
        } else {
            $this->options &= ~ $option;
        }
    }
protected function setOption ( int $ option , bool $ bool ) : void { if ( $ bool ) { $ this -> options |= $ option ; } else { $ this -> options &= ~ $ option ; } }
Sets or resets a bitmask option.

@param int  $option A JSON_* constant.
@param bool $bool   The boolean value.

@return void
Sets or resets a bitmask option .