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




``` Hack
public function addMembers(
  vec<Facebook\HackCodegen\CodegenEnumMember> $members,
): this;
```




## Parameters




- ` vec<Facebook\HackCodegen\CodegenEnumMember> $members `




## Returns




+ ` this `