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




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




## Parameters




* ` string $comment `




## Returns




- ` this `