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




``` Hack
public function addClasses(
  Traversable<Facebook\HackCodegen\CodegenClassish> $classes,
): this;
```




## Parameters




+ ` Traversable<Facebook\HackCodegen\CodegenClassish> $classes `




## Returns




* ` this `