1 | <?php |
||
9 | class DefaultHeaderDecorator |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $headers = []; |
||
15 | |||
16 | public function __construct(array $headers = []) |
||
20 | |||
21 | public function __invoke(ResponseInterface $response): ResponseInterface |
||
31 | |||
32 | public function addDefaultHeader(string $name, string $value): self |
||
37 | |||
38 | public function addDefaultHeaders(array $headers): self |
||
46 | } |
||
47 |