message = ''; $this->statusCode = Http::STATUS_OK; $this->server = $server; } /** * @param int $statusCode * @return self * @since 8.2.0 */ public function setStatusCode($statusCode) { $this->statusCode = (int)$statusCode; return $this; } /** * @param string $message * @return self * @since 8.2.0 */ public function setMessage($message) { $this->message = (string)$message; return $this; } /** * @return int * @since 8.2.0 */ public function getStatusCode() { return $this->statusCode; } /** * @return string * @since 8.2.0 */ public function getMessage() { return $this->message; } /** * @return null|Server * @since 9.0.0 */ public function getServer() { return $this->server; } }