public function __construct(ConfigInterface $config, array $options, $cwd) { $this->cwd = $cwd; $this->defaultConfig = $config; foreach ($options as $name => $value) { $this->setOption($name, $value); } }