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




Add each element of the ` Traversable ` as a new line




``` Hack
final public function addLines(
  Traversable<string> $lines,
): this;
```




## Parameters




- ` Traversable<string> $lines `




## Returns




+ ` this `