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




``` Hack
public function openContainer(
  Facebook\HackCodegen\ContainerType $type,
): this;
```




## Parameters




- ` Facebook\HackCodegen\ContainerType $type `




## Returns




+ ` this `