Download src/Presentation/Response/ViewResponse.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Response/ViewResponse.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Presentation/Response/ViewResponse.php
-
curl -L -o ViewResponse.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Response/ViewResponse.php
812 Bytes
| declare(strict_types=1); | |
| namespace Presentation\Response; | |
| use Easy\Http\Message\StatusCode; | |
| class ViewResponse extends HtmlResponse | |
| { | |
| /** | |
| * @param string $template | |
| * @param array $data | |
| * @param StatusCode $status | |
| * @param array $headers | |
| * @return void | |
| */ | |
| public function __construct( | |
| private string $template, | |
| private array $data = [], | |
| StatusCode $status = StatusCode::OK, | |
| array $headers = [] | |
| ) { | |
| parent::__construct( | |
| $template, | |
| $status, | |
| $headers | |
| ); | |
| } | |
| /** @return string */ | |
| public function getTemplate(): string | |
| { | |
| return $this->template; | |
| } | |
| /** @return array */ | |
| public function getData(): array | |
| { | |
| return $this->data; | |
| } | |
| } | |