Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class DefaultHeaderDecorator |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $headers = []; |
||
15 | |||
16 | 3 | public function __construct(array $headers = []) |
|
19 | 3 | } |
|
20 | |||
21 | 3 | public function __invoke(ResponseInterface $response): ResponseInterface |
|
30 | } |
||
31 | |||
32 | 3 | public function addDefaultHeader(string $name, string $value): self |
|
36 | } |
||
37 | |||
38 | 3 | public function addDefaultHeaders(array $headers): self |
|
47 |