public function build()
    {
        $grid = new Grid();

        foreach ($this->columns as $index => $column) {
            $grid->addColumn($column->build());
            $grid->addColumnResets($index, $column->getResets());
        }

        return $grid;
    }
public function build()
    {
        $grid = new Grid();

        foreach ($this->columns as $index => $column) {
            $grid->addColumn($column->build());
            $grid->addColumnResets($index, $column->getResets());
        }

        return $grid;
    }
public function build ( ) { $ grid = new Grid ( ) ; foreach ( $ this -> columns as $ index => $ column ) { $ grid -> addColumn ( $ column -> build ( ) ) ; $ grid -> addColumnResets ( $ index , $ column -> getResets ( ) ) ; } return $ grid ; }
Build the grid.

@return Grid
Build the grid .