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




``` Hack
final public function addUserAttribute<T>(
  string $name,
      Traversable<T> $values,
      IHackBuilderValueRenderer<T> $renderer,
): this;
```




## Parameters




+ ` string $name `
+ ` Traversable<T> $values `
+ ` IHackBuilderValueRenderer<T> $renderer `




## Returns




* ` this `