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




``` Hack
public function setShape(
  Facebook\HackCodegen\CodegenShape $codegen_shape,
): this;
```




## Parameters




* [` Facebook\HackCodegen\CodegenShape `](<class.Facebook.HackCodegen.CodegenShape.md>)`` $codegen_shape ``




## Returns




- ` this `