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




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




## Parameters




+ ` Facebook\HackCodegen\ContainerType $type `




## Returns




* ` this `