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




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




## Returns




+ ` string `