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




``` Hack
protected function getTraits(): vec<string>;
```




## Returns




* ` vec<string> `