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




``` Hack
public function addMember(
  Facebook\HackCodegen\CodegenEnumMember $member,
): this;
```




## Parameters




+ [` Facebook\HackCodegen\CodegenEnumMember `](<class.Facebook.HackCodegen.CodegenEnumMember.md>)`` $member ``




## Returns




* ` this `