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




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




## Returns




- ` ?string `