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