public function withStructure(ITableStructure $structure) : TableViewsDefiner
    {
        return new TableViewsDefiner($this->name, $this->callback, new ArrayTableDataSource($structure, $this->data));
    }
public function withStructure(ITableStructure $structure) : TableViewsDefiner
    {
        return new TableViewsDefiner($this->name, $this->callback, new ArrayTableDataSource($structure, $this->data));
    }
public function withStructure ( ITableStructure $ structure ) : TableViewsDefiner { return new TableViewsDefiner ( $ this -> name , $ this -> callback , new ArrayTableDataSource ( $ structure , $ this -> data ) ) ; }
Defines the structure of the table.

@param ITableStructure $structure

@return TableViewsDefiner
Defines the structure of the table .