public function setColumns(array $columns): self
    {
        foreach ($columns as $column => list($type, $size)) {
            list($type, $size) = $this->validateColumn($type, $size);
            $columns[$column] = [$type, $size];
        }
        $this->columns = $columns;
        return $this;
    }
public function setColumns(array $columns): self
    {
        foreach ($columns as $column => list($type, $size)) {
            list($type, $size) = $this->validateColumn($type, $size);
            $columns[$column] = [$type, $size];
        }
        $this->columns = $columns;
        return $this;
    }
public function setColumns ( array $ columns ) : self { foreach ( $ columns as $ column => list ( $ type , $ size ) ) { list ( $ type , $ size ) = $ this -> validateColumn ( $ type , $ size ) ; $ columns [ $ column ] = [ $ type , $ size ] ; } $ this -> columns = $ columns ; return $ this ; }
Set memory table columns struct

@param array $columns
@return Table;
@throws Exception\InvalidArgumentException
Set memory table columns struct