injectProperty($this); } /** * @return ?HttpParams * @throws Exception */ public function getInput(): ?HttpParams { return \request()->params; } /** * @return ?HttpHeaders * @throws Exception */ public function getHeaders(): ?HttpHeaders { return \request()->headers; } /** * @return Request|null * @throws Exception */ public function getRequest(): ?Request { return \request(); } /** * @param $name * @return mixed * @throws Exception */ public function __get($name): mixed { // TODO: Change the autogenerated stub if (property_exists($this, $name)) { return $this->$name; } $method = 'get' . ucfirst($name); if (method_exists($this, $method)) { return $this->{$method}(); } return Snowflake::app()->get($name); } }