public function setOptions(array $options)
    {
        $this->options = array();
        $this->optionsByShortName = array();

        $this->addOptions($options);

        return $this;
    }
public function setOptions(array $options)
    {
        $this->options = array();
        $this->optionsByShortName = array();

        $this->addOptions($options);

        return $this;
    }
public function setOptions ( array $ options ) { $ this -> options = array ( ) ; $ this -> optionsByShortName = array ( ) ; $ this -> addOptions ( $ options ) ; return $ this ; }
Sets the options of the built format.

Any existing options are removed when this method is called.

@param Option[] $options The options of the built format.

@return static The current instance.

@throws CannotAddOptionException If an option cannot be added.

@see addOption()
Sets the options of the built format .