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




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




## Parameters




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




## Returns




- ` this `