public function column($width, \Closure $closure)
    {
        if ($this->columns->isEmpty()) {
            $column = $this->current;

            $column->setWidth($width);
        } else {
            $column = new Column($width);

            $this->current = $column;
        }

        $this->columns->push($column);

        $closure($this->parent);
    }
public function column($width, \Closure $closure)
    {
        if ($this->columns->isEmpty()) {
            $column = $this->current;

            $column->setWidth($width);
        } else {
            $column = new Column($width);

            $this->current = $column;
        }

        $this->columns->push($column);

        $closure($this->parent);
    }
public function column ( $ width , \ Closure $ closure ) { if ( $ this -> columns -> isEmpty ( ) ) { $ column = $ this -> current ; $ column -> setWidth ( $ width ) ; } else { $ column = new Column ( $ width ) ; $ this -> current = $ column ; } $ this -> columns -> push ( $ column ) ; $ closure ( $ this -> parent ) ; }
Add a new column in layout.

@param int      $width
@param \Closure $closure
Add a new column in layout .