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




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




## Returns




* ` this `