public function __get($key) { if (isset($this->params[$key])) { return $this->params[$key]; } return null; }