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




``` Hack
public function getDocBlock(): ?string;
```




## Returns




+ ` ?string `