Total Complexity | 8 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class XXSSProtectionHeaderResult extends AbstractParsedHeader |
||
13 | { |
||
14 | private $protectionIsOn = false; |
||
15 | private $isBlocking = false; |
||
16 | private $hasReportUri = false; |
||
17 | |||
18 | public function isSecure(): bool |
||
19 | { |
||
20 | return $this->protectionIsOn() && $this->isBlocking(); |
||
21 | } |
||
22 | |||
23 | 8 | public function protectionIsOn(): bool |
|
24 | { |
||
25 | 8 | return $this->protectionIsOn; |
|
26 | } |
||
27 | |||
28 | 8 | public function setProtectionIsOn(bool $protectionIsOn): self |
|
29 | { |
||
30 | 8 | $this->protectionIsOn = $protectionIsOn; |
|
31 | |||
32 | 8 | return $this; |
|
33 | } |
||
34 | |||
35 | 8 | public function isBlocking(): bool |
|
36 | { |
||
37 | 8 | return $this->isBlocking; |
|
38 | } |
||
39 | |||
40 | 8 | public function setIsBlocking(bool $isBlocking): self |
|
41 | { |
||
42 | 8 | $this->isBlocking = $isBlocking; |
|
43 | |||
44 | 8 | return $this; |
|
45 | } |
||
46 | |||
47 | 8 | public function hasReportUri(): bool |
|
50 | } |
||
51 | |||
52 | 8 | public function setHasReportUri(bool $hasReportUri): self |
|
57 | } |
||
58 | } |
||
59 |