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




``` Hack
public function setGeneratedFrom(
  Facebook\HackCodegen\CodegenGeneratedFrom $from,
): this;
```




## Parameters




- [` Facebook\HackCodegen\CodegenGeneratedFrom `](<class.Facebook.HackCodegen.CodegenGeneratedFrom.md>)`` $from ``




## Returns




+ ` this `