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




## Interface Synopsis




``` Hack
namespace Facebook\HackCodegen;

trait CodegenWithVisibility {...}
```




### Public Methods




+ [` ->getVisibility(): string `](<trait.Facebook.HackCodegen.CodegenWithVisibility.getVisibility.md>)
+ [` ->setPrivate(): \this `](<trait.Facebook.HackCodegen.CodegenWithVisibility.setPrivate.md>)
+ [` ->setProtected(): \this `](<trait.Facebook.HackCodegen.CodegenWithVisibility.setProtected.md>)
+ [` ->setPublic(): \this `](<trait.Facebook.HackCodegen.CodegenWithVisibility.setPublic.md>)