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




The logical indentation level




``` Hack
final protected function setIndentationLevel(
  int $level,
): void;
```




How many levels the current code is nested. For the number of spaces
used for a single logical indentation, see
` IHackCodegenConfig::getSpacesPerIndentation() `.




## Parameters




* ` int $level `




## Returns




- ` void `