public function getConfiguration($name = null) { if ($name === null) { return $this->config; } elseif (isset($this->config[$name])) { return $this->config[$name]; } else { return $this->config; } }