statusCode; } /** * @param int $code * @param string $reasonPhrase * @return ResponseInterface */ public function withStatus($code, $reasonPhrase = ''): ResponseInterface { // TODO: Implement withStatus() method. $class = clone $this; $class->statusCode = $code; $class->reasonPhrase = $reasonPhrase; return $class; } /** * @return string */ public function getReasonPhrase(): string { // TODO: Implement getReasonPhrase() method. return $this->reasonPhrase; } }