src/PHPEncoder.php
public function getAllOptions(array $overrides = [])
    {
        $options = $this->options;

        foreach ($this->encoders as $encoder) {
            $options += $encoder->getDefaultOptions();
        }

        foreach ($overrides as $name => $value) {
            if (!array_key_exists($name, $options)) {
                throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $name));
            }

            $options[$name] = $value;
        }

        ksort($options);

        return $options;
    }
public function getAllOptions(array $overrides = [])
    {
        $options = $this->options;

        foreach ($this->encoders as $encoder) {
            $options += $encoder->getDefaultOptions();
        }

        foreach ($overrides as $name => $value) {
            if (!array_key_exists($name, $options)) {
                throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $name));
            }

            $options[$name] = $value;
        }

        ksort($options);

        return $options;
    }
public function getAllOptions ( array $ overrides = [ ] ) { $ options = $ this -> options ; foreach ( $ this -> encoders as $ encoder ) { $ options += $ encoder -> getDefaultOptions ( ) ; } foreach ( $ overrides as $ name => $ value ) { if ( ! array_key_exists ( $ name , $ options ) ) { throw new InvalidOptionException ( sprintf ( "Invalid encoder option '%s'" , $ name ) ) ; } $ options [ $ name ] = $ value ; } ksort ( $ options ) ; return $ options ; }
Returns a list of all encoder options.
@param array $overrides Options to override in the returned array
@return array List of encoder options
@throws InvalidOptionException If any of the encoder option overrides are invalid
Returns a list of all encoder options .