| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class TemplateResponse extends AbstractLazyHttpResponse |
||
| 12 | { |
||
| 13 | 4 | public function __construct(private string $template, private array $data = [], int $status = Response::HTTP_OK, array $headers = []) |
|
| 14 | { |
||
| 15 | 4 | parent::__construct($status, $headers); |
|
| 16 | 4 | } |
|
| 17 | |||
| 18 | 4 | public function getTemplate(): string |
|
| 19 | { |
||
| 20 | 4 | return $this->template; |
|
| 21 | } |
||
| 22 | |||
| 23 | 4 | public function getData(): array |
|
| 26 | } |
||
| 27 | } |
||
| 28 |