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




``` Hack
public function setNamespace(
  string $file_namespace,
): this;
```




## Parameters




* ` string $file_namespace `




## Returns




- ` this `