public function setColumns(array $columns, $add = false) {
        if (!$add) {
            $this->columnDefinition = [];
        }
        foreach ($columns as $key => $def) {
            $this->addColumn($key, $def);
        }
        return $this;
    }
public function setColumns(array $columns, $add = false) {
        if (!$add) {
            $this->columnDefinition = [];
        }
        foreach ($columns as $key => $def) {
            $this->addColumn($key, $def);
        }
        return $this;
    }
public function setColumns ( array $ columns , $ add = false ) { if ( ! $ add ) { $ this -> columnDefinition = [ ] ; } foreach ( $ columns as $ key => $ def ) { $ this -> addColumn ( $ key , $ def ) ; } return $ this ; }
Add many columns in one shot

@see addColumn
@param array $columns
@param bool $add true to add these columns to existing columns
@return \mangetasoupe\pdf\TcTable
Add many columns in one shot