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




``` Hack
final public function codegenUsesTraits(
      Traversable<string> $names,
): vec<Facebook\HackCodegen\CodegenUsesTrait>;
```




## Parameters




* ` Traversable<string> $names `




## Returns




- ` vec<Facebook\HackCodegen\CodegenUsesTrait> `