---
layout: docs
title: Facebook\HackCodegen\HackfmtFormatter
id: class.Facebook.HackCodegen.HackfmtFormatter
docid: class.Facebook.HackCodegen.HackfmtFormatter
permalink: /docs/reference/class.Facebook.HackCodegen.HackfmtFormatter/
---
# Facebook\\HackCodegen\\HackfmtFormatter




## Interface Synopsis




``` Hack
namespace Facebook\HackCodegen;

final class HackfmtFormatter implements ICodegenFormatter {...}
```




### Public Methods




- [` ->__construct(IHackCodegenConfig $config) `](<class.Facebook.HackCodegen.HackfmtFormatter.__construct.md>)
- [` ->format(string $code, string $_file_name): string `](<class.Facebook.HackCodegen.HackfmtFormatter.format.md>)







### Private Methods




+ [` ->getFormattedOptions(): string `](<class.Facebook.HackCodegen.HackfmtFormatter.getFormattedOptions.md>)