get = &$get; $this->routeParams = &$routeParams; $this->post = &$post; $this->session = new Session($session); } public function query($key) { if (isset($this->get[$key])) { return $this->get[$key]; } if (isset($this->routeParams[$key])) { return $this->routeParams[$key]; } return null; } public function post($key) { if (isset($this->post[$key])) { return $this->post[$key]; } return null; } public function session(): ISession { return $this->session; } public function user(): ?IUser { return $this->session->get('user'); } }