$val) { $this->set($key, $val); } } /** * 获取配置信息 * * @param string $name Name of configuration attribute/value * @return string|integer|float|boolean|array */ public function get($name) { return $this->config[$name] ?: null; } /** * 设置配置信息 * * @param string $name Name of value * @param string|boolean|integer|float|array $value Value to set */ public function set($name, $value) { $this->config[$name] = $value; } }