private static function ensureValidConfigOptions($option)
    {
        $class = get_called_class();

        if (!is_array($option)) {
            self::ensureValidConfigOption($class, $option);
        } else {
            $keys = array_keys($option);
            foreach ($keys as $key) {
                self::ensureValidConfigOption($class, $key);
            }
        }
    }
private static function ensureValidConfigOptions($option)
    {
        $class = get_called_class();

        if (!is_array($option)) {
            self::ensureValidConfigOption($class, $option);
        } else {
            $keys = array_keys($option);
            foreach ($keys as $key) {
                self::ensureValidConfigOption($class, $key);
            }
        }
    }
private static function ensureValidConfigOptions ( $ option ) { $ class = get_called_class ( ) ; if ( ! is_array ( $ option ) ) { self :: ensureValidConfigOption ( $ class , $ option ) ; } else { $ keys = array_keys ( $ option ) ; foreach ( $ keys as $ key ) { self :: ensureValidConfigOption ( $ class , $ key ) ; } } }
Helper function to ensure that the passed configuration options exist.

@param mixed $option Pass either the name of an option or an array of options.
@throws UnknownConfigurationOptionException If an option does not exist.
Helper function to ensure that the passed configuration options exist .