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




``` Hack
public function endSwitch(): this;
```




## Returns




+ ` this `