/** * Adds multiple columns at the end of the array * the column should be an associative array, that can have 'label', 'id' and 'type' * @param array $cols */ public function addColumns(array $cols) { foreach ($cols as $col) { $this->cols[] = DataColumn::fromArray($col); } }