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




Requires subclasses to have compatible constructors




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




## Parameters




* ` bool $value = true `




## Returns




- ` this `