public function merge($options)
    {
        if (is_array($options)) {
            $this->options = array_merge_recursive($this->options, $options);
        } elseif ($options instanceof self) {
            $this->options = array_merge_recursive($this->options, $options->options);
        }
    }
public function merge($options)
    {
        if (is_array($options)) {
            $this->options = array_merge_recursive($this->options, $options);
        } elseif ($options instanceof self) {
            $this->options = array_merge_recursive($this->options, $options->options);
        }
    }
public function merge ( $ options ) { if ( is_array ( $ options ) ) { $ this -> options = array_merge_recursive ( $ this -> options , $ options ) ; } elseif ( $ options instanceof self ) { $ this -> options = array_merge_recursive ( $ this -> options , $ options -> options ) ; } }
Merges the specified options with these ones. Values with same ID will be
replaced.

@param array|OptionsArray $options the options to be merged
Merges the specified options with these ones . Values with same ID will be replaced .