protected function configure($config = null)
{
if (is_array($config)) {
$this->config = new CodeFileGeneratorConfig($config);
} else {
if ($config instanceof CodeFileGeneratorConfig) {
$this->config = $config;
} else {
$this->config = new CodeFileGeneratorConfig();
}
}
}