state = $state; } public function getState(): ?bool { return $this->state; } public function hasNoPreference(): bool { return $this->state === null; } public function allowsTracking(): bool { return $this->state !== false; } public static function parse(HttpHeader $header): DNTHeader { $value = $header->getFirstLine(); return new DNTHeader($value === 'null' ? null : ($value === '1')); } }