public function setOptions($options, $merge = false)
    {
        if ($merge) {
            $this->options = array_merge($this->options, $options);
        } else {
            $this->options = $options;
        }

        return $this;
    }
public function setOptions($options, $merge = false)
    {
        if ($merge) {
            $this->options = array_merge($this->options, $options);
        } else {
            $this->options = $options;
        }

        return $this;
    }
public function setOptions ( $ options , $ merge = false ) { if ( $ merge ) { $ this -> options = array_merge ( $ this -> options , $ options ) ; } else { $ this -> options = $ options ; } return $ this ; }
Define the options

@param array $options
@param bool $merge Est-ce que l'on ajoute les options aux options existantes, ou les ecrases

@return $this
Define the options