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




Create an enum member




``` Hack
public function codegenEnumMember(
  string $name,
): Facebook\HackCodegen\CodegenEnumMember;
```




## Parameters




* ` string $name `




## Returns




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