How to add TextBox with auto height in phpword?

I'm using PHPWord 0.16

i want to create a text box and some text in that and my code is something like this:

 $textbox4 = $section->addTextBox(
     array(
         'align'       => 'center',
         'width'       => 540,
         'height'      => 140,
         'borderSize'  => 2,
         'borderColor' => '#000000'
     )
 );

foreach ($logTextLines as $someText) {
   $section->addText($someText , null, null );
}

but i dont know length of each " $someText " and it can be 2 or 3 or ... lines and i cant guess textbox height from $logTextLines count

how to set auto height for textbox ??