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




``` Hack
public function getVisibility(): string;
```




## Returns




* ` string `