public function setBody($body) { $this->body = $body; $this->contentLength = strlen($this->body); return $this; }