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




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




## Parameters




- ` string $comment `




## Returns




+ ` this `