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




``` Hack
public function addInterface(
  Facebook\HackCodegen\CodegenImplementsInterface $value,
): this;
```




## Parameters




+ [` Facebook\HackCodegen\CodegenImplementsInterface `](<class.Facebook.HackCodegen.CodegenImplementsInterface.md>)`` $value ``




## Returns




* ` this `