for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* @license http://opensource.org/licenses/mit-license.php MIT
* @link https://github.com/nicoSWD
* @author Nicolas Oelgart <[email protected]>
*/
namespace nicoSWD\SecHeaderCheck\Domain\Result\Result;
use nicoSWD\SecHeaderCheck\Domain\Result\AbstractParsedHeader;
final class ServerHeaderResult extends AbstractParsedHeader
{
private $leaksServerVersion = true;
public function isSecure(): bool
return !$this->leaksServerVersion();
}
public function leaksServerVersion(): bool
return $this->leaksServerVersion;
public function setLeaksServerVersion(bool $leaksServerVersion): self
$this->leaksServerVersion = $leaksServerVersion;
return $this;