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




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




## Parameters




+ ` string $name `




## Returns




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