---
layout: docs
title: addInterfaces
id: trait.Facebook.HackCodegen.CodegenClassWithInterfaces.addInterfaces
docid: trait.Facebook.HackCodegen.CodegenClassWithInterfaces.addInterfaces
permalink: /docs/reference/trait.Facebook.HackCodegen.CodegenClassWithInterfaces.addInterfaces/
---
# Facebook\\HackCodegen\\CodegenClassWithInterfaces::addInterfaces()




``` Hack
public function addInterfaces(
      Traversable<Facebook\HackCodegen\CodegenImplementsInterface> $interfaces,
): this;
```




## Parameters




- ` Traversable<Facebook\HackCodegen\CodegenImplementsInterface> $interfaces `




## Returns




+ ` this `