---
layout: docs
title: setPrivate
id: trait.Facebook.HackCodegen.CodegenWithVisibility.setPrivate
docid: trait.Facebook.HackCodegen.CodegenWithVisibility.setPrivate
permalink: /docs/reference/trait.Facebook.HackCodegen.CodegenWithVisibility.setPrivate/
---
# Facebook\\HackCodegen\\CodegenWithVisibility::setPrivate()




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




## Returns




- ` this `