*/ private array $headers; /** * @param array $headers */ public function __construct(string $body = '', int $status = 200, array $headers = []) { $this->body = $body; $this->status = $status; $this->headers = $headers; } public function getBody(): string { return $this->body; } public function getStatus(): int { return $this->status; } /** * @return array */ public function getHeaders(): array { return $this->headers; } }