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




Returns the value as code




``` Hack
public function getValue(): ?string;
```




## Returns




- ` ?string `