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




``` Hack
public function __construct(
  Facebook\HackCodegen\IHackCodegenConfig $config,
);
```




## Parameters




* [` Facebook\HackCodegen\IHackCodegenConfig `](<interface.Facebook.HackCodegen.IHackCodegenConfig.md>)`` $config ``