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




``` Hack
public function setAllowsSubtyping(
  bool $value,
): this;
```




## Parameters




* ` bool $value `




## Returns




- ` this `