public function makeConfigFromArray($configArray = [])
    {
        $object = new stdClass;

        if (!is_array($configArray)) {
            return $object;
        }

        foreach ($configArray as $name => $value) {
            $_name = camel_case($name);
            $object->{$name} = $object->{$_name} = $value;
        }

        return $object;
    }
public function makeConfigFromArray($configArray = [])
    {
        $object = new stdClass;

        if (!is_array($configArray)) {
            return $object;
        }

        foreach ($configArray as $name => $value) {
            $_name = camel_case($name);
            $object->{$name} = $object->{$_name} = $value;
        }

        return $object;
    }
public function makeConfigFromArray ( $ configArray = [ ] ) { $ object = new stdClass ; if ( ! is_array ( $ configArray ) ) { return $ object ; } foreach ( $ configArray as $ name => $ value ) { $ _name = camel_case ( $ name ) ; $ object -> { $ name } = $ object -> { $ _name } = $ value ; } return $ object ; }
Makes a config object from an array, making the first level keys properties a new object.
Property values are converted to camelCase and are not set if one already exists.
@param array $configArray Config array.
@return stdClass The config object
Makes a config object from an array making the first level keys properties a new object . Property values are converted to camelCase and are not set if one already exists .