path = $path; $this->code = $code; } public function call(Router $router, array $params): string { http_response_code($this->code); return serveStatic(WEBROOT, $this->path); } protected function getArgs(): array { return array_merge(parent::getArgs(), [$this->path, $this->code]); } }