---
layout: docs
title: setBody
id: class.Facebook.HackCodegen.CodegenFunctionish.setBody
docid: class.Facebook.HackCodegen.CodegenFunctionish.setBody
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFunctionish.setBody/
---
# Facebook\\HackCodegen\\CodegenFunctionish::setBody()




``` Hack
public function setBody(
  string $body,
): this;
```




## Parameters




* ` string $body `




## Returns




- ` this `