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




``` Hack
public function setName(
  string $name,
): this;
```




## Parameters




+ ` string $name `




## Returns




* ` this `