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