public function __construct($configPath) { if (is_array($configPath)) { $this->config = $configPath; } else { $this->configPath = $configPath; } }