Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | trait HasHeadersTrait |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Headers (taken from the $_SERVER). |
||
14 | * |
||
15 | * @var \Symfony\Component\HttpFoundation\HeaderBag |
||
16 | */ |
||
17 | protected $headers; |
||
18 | |||
19 | /** |
||
20 | * @return \Symfony\Component\HttpFoundation\HeaderBag |
||
21 | */ |
||
22 | public function getHeaders(): \Symfony\Component\HttpFoundation\HeaderBag |
||
23 | { |
||
24 | return $this->headers; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param \Symfony\Component\HttpFoundation\HeaderBag $headers |
||
29 | */ |
||
30 | 4 | public function setHeaders(\Symfony\Component\HttpFoundation\HeaderBag $headers) |
|
33 | 4 | } |
|
34 | } |
||
35 |