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




``` Hack
public function addFunctions(
  Traversable<Facebook\HackCodegen\CodegenFunction> $functions,
): this;
```




## Parameters




- ` Traversable<Facebook\HackCodegen\CodegenFunction> $functions `




## Returns




+ ` this `