body = $body; return $this; } public function headers(bool $headers): self { $this->headers = $headers; return $this; } public function includeHeaders(string ...$includeHeaders): self { $this->includeHeaders = $includeHeaders; return $this; } public function excludeHeaders(string ...$excludeHeaders): self { $this->excludeHeaders = $excludeHeaders; return $this; } public function unmaskHeaders(string ...$unmaskHeaders): self { $this->unmaskHeaders = $unmaskHeaders; return $this; } public function getConfiguration(): array { return [ 'body' => $this->body, 'headers' => $this->headers, 'includeHeaders' => CoreHelper::clone($this->includeHeaders), 'excludeHeaders' => CoreHelper::clone($this->excludeHeaders), 'unmaskHeaders' => CoreHelper::clone($this->unmaskHeaders) ]; } public function build(): ResponseConfiguration { return new ResponseConfiguration( $this->body, $this->headers, $this->includeHeaders, $this->excludeHeaders, $this->unmaskHeaders ); } }