public function getParam($key = null, $default = null) { if (null === $key) { return $this->data[self::P_PARAMS]; } return $this->hasParam($key) ? $this->data[self::P_PARAMS][$key] : $default; }