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




``` Hack
public function setConstraintf(
  HH\Lib\Str\SprintfFormatString $c,
  mixed ...$args,
): this;
```




## Parameters




+ ` HH\Lib\Str\SprintfFormatString $c `
+ ` mixed ...$args `




## Returns




* ` this `