src/PHPEncoder.php
public function setOption($option, $value)
    {
        if (!$this->isValidOption($option)) {
            throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $option));
        }

        $this->options[$option] = $value;
    }
public function setOption($option, $value)
    {
        if (!$this->isValidOption($option)) {
            throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $option));
        }

        $this->options[$option] = $value;
    }
public function setOption ( $ option , $ value ) { if ( ! $ this -> isValidOption ( $ option ) ) { throw new InvalidOptionException ( sprintf ( "Invalid encoder option '%s'" , $ option ) ) ; } $ this -> options [ $ option ] = $ value ; }
Sets the value for an encoder option.
@param string $option Name of the option
@param mixed $value Value for the option
@throws InvalidOptionException If the provided encoder option is invalid
Sets the value for an encoder option .