public function addColumns(array $columns) : Table
    {
        foreach ($columns as $column => $definition) {
            if (is_numeric($column) && is_string($definition)) {
                $this->addColumn($definition, []);
            } else {
                $this->addColumn($column, $definition);
            }
        }
        return $this;
    }
public function addColumns(array $columns) : Table
    {
        foreach ($columns as $column => $definition) {
            if (is_numeric($column) && is_string($definition)) {
                $this->addColumn($definition, []);
            } else {
                $this->addColumn($column, $definition);
            }
        }
        return $this;
    }
public function addColumns ( array $ columns ) : Table { foreach ( $ columns as $ column => $ definition ) { if ( is_numeric ( $ column ) && is_string ( $ definition ) ) { $ this -> addColumn ( $ definition , [ ] ) ; } else { $ this -> addColumn ( $ column , $ definition ) ; } } return $ this ; }
Add columns to the definition
@param  array      $columns key - value pairs, where each key is a column name and each value - array of info
@return  self
Add columns to the definition