---
layout: docs
title: getFormatter
id: interface.Facebook.HackCodegen.IHackCodegenConfig.getFormatter
docid: interface.Facebook.HackCodegen.IHackCodegenConfig.getFormatter
permalink: /docs/reference/interface.Facebook.HackCodegen.IHackCodegenConfig.getFormatter/
---
# Facebook\\HackCodegen\\IHackCodegenConfig::getFormatter()




``` Hack
public function getFormatter(): ?Facebook\HackCodegen\ICodegenFormatter;
```




## Returns




- ` ? `[` Facebook\HackCodegen\ICodegenFormatter `](<interface.Facebook.HackCodegen.ICodegenFormatter.md>)