| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | final class ReferrerPolicyHeaderResult extends AbstractParsedHeader |
||
| 13 | { |
||
| 14 | private $mayLeakOrigin = true; |
||
| 15 | private $doesNotLeakReferrer = false; |
||
| 16 | |||
| 17 | public function isSecure(): bool |
||
| 18 | { |
||
| 19 | return $this->doesNotLeakReferrer(); |
||
| 20 | } |
||
| 21 | |||
| 22 | 2 | public function mayLeakOrigin(): bool |
|
| 25 | } |
||
| 26 | |||
| 27 | 4 | public function setMayLeakOrigin(bool $mayLeakOrigin): self |
|
| 28 | { |
||
| 29 | 4 | $this->mayLeakOrigin = $mayLeakOrigin; |
|
| 30 | |||
| 31 | 4 | return $this; |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function doesNotLeakReferrer(): bool |
|
| 37 | } |
||
| 38 | |||
| 39 | 4 | public function setDoesNotLeakReferrer(bool $doesNotLeakReferrer): self |
|
| 44 | } |
||
| 45 | } |
||
| 46 |