Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | abstract class ResponseBuilder |
||
16 | { |
||
17 | protected $template; |
||
18 | protected string $contentType = ''; |
||
19 | protected array $headers; |
||
20 | protected array $data; |
||
21 | |||
22 | 69 | public function __construct($template, $data = [], $headers = []) |
|
27 | } |
||
28 | |||
29 | public function getHeaders(): array |
||
32 | } |
||
33 | |||
34 | |||
35 | 65 | public function getContentType(): string |
|
38 | } |
||
39 | |||
40 | abstract public function getBody(): StreamInterface; |
||
41 | } |
||
42 |