Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | final class DefaultOutputWriter implements OutputWriter |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | * @codeCoverageIgnore |
||
10 | */ |
||
11 | public function setResponseCode(int $code) |
||
12 | { |
||
13 | \header("HTTP/1.1 {$code} " . self::RESPONSE_MESSAGES[$code]); |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | * @codeCoverageIgnore |
||
19 | */ |
||
20 | public function sendHeader(string $name, string $value) |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 1 | public function sendData(string $data) |
|
31 | } |
||
32 | } |
||
33 |