| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Html extends Response |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param string $content HTML |
||
| 18 | * @param int $code HTTP code to respond with, defaults to `200` |
||
| 19 | * @param array $config inject config/overrides like `header_func` |
||
| 20 | */ |
||
| 21 | public function __construct($content = null, int $code = Http::CODE_OK, array $config = []) |
||
| 30 | ; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set header and return a string rendered and ready to be echo'ed as response |
||
| 35 | * |
||
| 36 | * Header 'Content-type:' will be set using `header` or an injeced 'header_func' through constructor |
||
| 37 | */ |
||
| 38 | public function render(): string |
||
| 44 |