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




Set the parent class of the generated class, using a %-placeholder format
string




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




## Parameters




* ` HH\Lib\Str\SprintfFormatString $name `
* ` mixed ...$args `




## Returns




- ` this `