public function getParam($key) { if (array_key_exists($key, $this->params)) { return $this->params[$key]; } return null; }