Vinkla\Backup\ProfileBuilderFactory::getConfig PHP Method

getConfig() protected method

Get the configuration data.
protected getConfig ( array $config ) : array
$config array
return array
    protected function getConfig(array $config) : array
    {
        $keys = ['sources', 'destinations', 'processors', 'namers'];
        foreach ($keys as $key) {
            if (!array_key_exists($key, $config)) {
                throw new InvalidArgumentException("Missing configuration key [{$key}].");
            }
        }
        return $config;
    }