---
layout: docs
title: Facebook\HackCodegen\ICodegenFormatter
id: interface.Facebook.HackCodegen.ICodegenFormatter
docid: interface.Facebook.HackCodegen.ICodegenFormatter
permalink: /docs/reference/interface.Facebook.HackCodegen.ICodegenFormatter/
---
# Facebook\\HackCodegen\\ICodegenFormatter




Implement this interface to define a class to format a file after the
code is generated




## Interface Synopsis




``` Hack
namespace Facebook\HackCodegen;

interface ICodegenFormatter {...}
```




### Public Methods




+ [` ->format(string $code, string $file_name): string `](<interface.Facebook.HackCodegen.ICodegenFormatter.format.md>)