| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 42.86% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | final class ServerHeaderResult extends AbstractParsedHeader |
||
| 13 | { |
||
| 14 | private $leaksServerVersion = true; |
||
| 15 | |||
| 16 | public function isSecure(): bool |
||
| 17 | { |
||
| 18 | return !$this->leaksServerVersion(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function leaksServerVersion(): bool |
||
| 22 | { |
||
| 23 | return $this->leaksServerVersion; |
||
| 24 | } |
||
| 25 | |||
| 26 | 2 | public function setLeaksServerVersion(bool $leaksServerVersion): self |
|
| 31 | } |
||
| 32 | } |
||
| 33 |