public function addOptions(array $options)
    {
        foreach ($options as $name => $value) {
            $this->setOption($name, $value);
        }

        return $this;
    }
public function addOptions(array $options)
    {
        foreach ($options as $name => $value) {
            $this->setOption($name, $value);
        }

        return $this;
    }
public function addOptions ( array $ options ) { foreach ( $ options as $ name => $ value ) { $ this -> setOption ( $ name , $ value ) ; } return $ this ; }
Sets the values of multiple options.

The existing options are preserved.

@param array $options The options indexed by their long or short names
and their values.

@return static The current instance.

@see setOption()
Sets the values of multiple options .