Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class StrictTransportSecurityHeaderResult extends AbstractParsedHeader |
||
13 | { |
||
14 | private $hasSecureMaxAge = false; |
||
15 | private $hasFlagIncludeSubDomains = false; |
||
16 | |||
17 | public function isSecure(): bool |
||
18 | { |
||
19 | return $this->hasSecureMaxAge(); |
||
20 | } |
||
21 | |||
22 | 6 | public function hasSecureMaxAge(): bool |
|
23 | { |
||
24 | 6 | return $this->hasSecureMaxAge; |
|
25 | } |
||
26 | |||
27 | 8 | public function setHasSecureMaxAge(bool $hasSecureMaxAge): self |
|
28 | { |
||
29 | 8 | $this->hasSecureMaxAge = $hasSecureMaxAge; |
|
30 | |||
31 | 8 | return $this; |
|
32 | } |
||
33 | |||
34 | 6 | public function hasFlagIncludeSubDomains(): bool |
|
35 | { |
||
36 | 6 | return $this->hasFlagIncludeSubDomains; |
|
37 | } |
||
38 | |||
39 | 8 | public function setHasFlagIncludeSubDomains(bool $hasFlagIncludeSubDomains): self |
|
44 | } |
||
45 | } |
||
46 |