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




``` Hack
public function addProperty(
  Facebook\HackCodegen\CodegenProperty $var,
): this;
```




## Parameters




* [` Facebook\HackCodegen\CodegenProperty `](<class.Facebook.HackCodegen.CodegenProperty.md>)`` $var ``




## Returns




- ` this `