public function setConfig($config, $value = '') { if (is_array($config)) { $this->config = array_merge($this->config, $config); } else { $this->config[$config] = $value; } }