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




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




## Returns




+ ` ?string `