body) ? 'POST' : 'GET'; } public function setBody($body): static { if (is_null($body)) { return $this; } $this->body = $body; return $this; } }