statusCode = $statusCode; $this->statusText = $statusText; } public function getStatusCode(): int { return $this->statusCode; } public function getStatusText(): string { return $this->statusText; } public static function parse(HttpHeader $header): ExpectHeader { $value = explode('-', $header->getFirstLine(), 2); return new ExpectHeader((int)$value[0], $value[1] ?? ''); } }