Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class ParsedHeaders |
||
15 | { |
||
16 | /** @var ParsedHeaderBag */ |
||
17 | private $headers; |
||
18 | |||
19 | 2 | public function __construct() |
|
20 | { |
||
21 | 2 | $this->headers = new ParsedHeaderBag(); |
|
22 | 2 | } |
|
23 | |||
24 | 2 | public function add(AbstractParsedHeader $header): void |
|
25 | { |
||
26 | 2 | $this->headers->add($header); |
|
27 | 2 | } |
|
28 | |||
29 | public function all(): ParsedHeaderBag |
||
32 | } |
||
33 | |||
34 | /** @return ContentSecurityPolicyHeaderResult[] */ |
||
35 | public function getContentSecurityPolicyResult() |
||
36 | { |
||
37 | return $this->headers->findMultiple(SecurityHeader::CONTENT_SECURITY_POLICY); |
||
38 | } |
||
39 | |||
40 | public function getXFrameOptionsResult(): ?XFrameOptionsHeaderResult |
||
43 | } |
||
44 | } |
||
45 |