method = $method; $this->params = $params; } public function getMethod(): string { return $this->method; } public function isMethod(string $method): bool { return $this->method === strtolower($method); } public function getParams(): string { return $this->params; } public static function parse(HttpHeader $header): ProxyAuthorizationHeader { $parts = explode(' ', trim($header->getFirstLine()), 2); return new ProxyAuthorizationHeader($parts[0], $parts[1] ?? ''); } }