public function save() { $configString = ''; foreach ($this->config as $configKey => $configValue) { $configString .= $configKey . '=' . $configValue . PHP_EOL; } file_put_contents($this->path, $configString); }