public function setConfig($configOrKey, $config = null) {
        if ($config !== null) {
            $this->config[$configOrKey] = $config;
        }
        else {
            $this->config = ($configOrKey !== null ? $configOrKey : array());
        }
    }
public function setConfig($configOrKey, $config = null) {
        if ($config !== null) {
            $this->config[$configOrKey] = $config;
        }
        else {
            $this->config = ($configOrKey !== null ? $configOrKey : array());
        }
    }
public function setConfig ( $ configOrKey , $ config = null ) { if ( $ config !== null ) { $ this -> config [ $ configOrKey ] = $ config ; } else { $ this -> config = ( $ configOrKey !== null ? $ configOrKey : array ( ) ) ; } }
Sets config.

@param string|array $configOrKey The config or key to set.
@param array $config The config to set.

@return void
Sets config .