private function setConfigPath(string $config) { if ($this->configPath !== null) { throw new \LogicException("Config path can't be altered at run-time"); } $this->configPath = $config; }