---
layout: docs
title: codegenGeneratedFromClass
id: interface.Facebook.HackCodegen.ICodegenFactory.codegenGeneratedFromClass
docid: interface.Facebook.HackCodegen.ICodegenFactory.codegenGeneratedFromClass
permalink: /docs/reference/interface.Facebook.HackCodegen.ICodegenFactory.codegenGeneratedFromClass/
---
# Facebook\\HackCodegen\\ICodegenFactory::codegenGeneratedFromClass()




Generate a documentation comment indicating that a particular class was
used to generate a file




``` Hack
public function codegenGeneratedFromClass(
  string $class,
): Facebook\HackCodegen\CodegenGeneratedFrom;
```




## Parameters




* ` string $class `




## Returns




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