/** * adds nested table * * @param string $alignment * @return PHPRtfLite_Table_Nested */ public function addTable($alignment = PHPRtfLite_Table::ALIGN_LEFT) { $nestDepth = $this->_table->getNestDepth() + 1; $table = new PHPRtfLite_Table_Nested($this, $alignment, $nestDepth); $this->_elements[] = $table; return $table; }