---
layout: docs
title: codegenShape
id: trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenShape
docid: trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenShape
permalink: /docs/reference/trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenShape/
---
# Facebook\\HackCodegen\\CodegenFactoryTrait::codegenShape()




``` Hack
final public function codegenShape(
  Facebook\HackCodegen\CodegenShapeMember ...$members,
): Facebook\HackCodegen\CodegenShape;
```




## Parameters




* [` Facebook\HackCodegen\CodegenShapeMember `](<class.Facebook.HackCodegen.CodegenShapeMember.md>)`` ...$members ``




## Returns




- [` Facebook\HackCodegen\CodegenShape `](<class.Facebook.HackCodegen.CodegenShape.md>)