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




Get the text for a doc block that can be used for an autogenerated file




``` Hack
public static function getDocBlock(
  ?string $comment = NULL,
): string;
```




If a comment is set, it will be included in the doc block.




## Parameters




* ` ?string $comment = NULL `




## Returns




- ` string `