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




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




## Returns




* ` string `