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




``` Hack
public function addValue<T>(
  T $value,
  IHackBuilderValueRenderer<T> $r,
): this;
```




## Parameters




+ ` T $value `
+ ` IHackBuilderValueRenderer<T> $r `




## Returns




* ` this `