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




``` Hack
public function setIsFinal(
  bool $value = true,
): this;
```




## Parameters




* ` bool $value = true `




## Returns




- ` this `