src/Classes/DatasetClass.php
public function options($options, bool $overwrite = false)
    {
        if ($overwrite) {
            $this->options = $options;
        } else {
            $this->options = array_replace_recursive($this->options, $options);
        }

        return $this;
    }
public function options($options, bool $overwrite = false)
    {
        if ($overwrite) {
            $this->options = $options;
        } else {
            $this->options = array_replace_recursive($this->options, $options);
        }

        return $this;
    }
public function options ( $ options , bool $ overwrite = false ) { if ( $ overwrite ) { $ this -> options = $ options ; } else { $ this -> options = array_replace_recursive ( $ this -> options , $ options ) ; } return $ this ; }
Set the dataset options.

@param array|Collection $options
@param bool             $overwrite

@return self
Set the dataset options .