| 1 | <?php declare(strict_types=1); |
||
| 7 | final class TemplateResponse extends Response |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $template; |
||
| 11 | |||
| 12 | /** @var mixed[] */ |
||
| 13 | private $templateData = []; |
||
| 14 | |||
| 15 | public function getTemplate(): string |
||
| 19 | |||
| 20 | public function withTemplate(string $template): TemplateResponse |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return mixed[] |
||
| 30 | */ |
||
| 31 | public function getTemplateData(): array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param mixed[] $data |
||
| 38 | */ |
||
| 39 | public function withTemplateData(array $data): TemplateResponse |
||
| 46 | } |
||
| 47 |