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




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




## Parameters




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




## Returns




* ` this `