config = json_decode(json: $configJSON, associative: true); if ($verbose) { $this->config['verbose'] = true; } else { $this->config['verbose'] = false; } } public function getConfig(string $configKey): string { return $this->config[$configKey]; } }