DirectAdmin\LetsEncrypt\Lib\Utility\ConfigurableTrait::config PHP Method

config() public method

Set or receive config variable
public config ( string | null $key = null, string | null $value = null ) : string | null
$key string | null Key of entry
$value string | null
return string | null
    public function config($key = null, $value = null)
    {
        if (!$this->initializedConfig) {
            $this->initializeConfig();
        }
        if ($value == null) {
            return $key == null ? $this->config : $this->config[$key];
        } else {
            $this->config[$key] = $value;
            $this->saveConfig();
        }
    }