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




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




## Parameters




* ` string $comment `




## Returns




- ` this `