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




``` Hack
public function setComment(
  string $comment,
): this;
```




## Parameters




* ` string $comment `




## Returns




- ` this `