protected function setParsedConfig(array $config) { foreach ($config as $key => $value) { $setter = 'set' . ucfirst($key); $this->{$setter}($value); } }