public function index() : ColumnMappingDefiner
    {
        return new ColumnMappingDefiner(
            function (IColumn $column) {
                $this->column($column);
                $this->indexComponentIdMap[] = $column->getComponentId();
            },
            function (string $componentId) {
                $this->indexComponentIdMap[] = $componentId;
            }
        );
    }
public function index() : ColumnMappingDefiner
    {
        return new ColumnMappingDefiner(
            function (IColumn $column) {
                $this->column($column);
                $this->indexComponentIdMap[] = $column->getComponentId();
            },
            function (string $componentId) {
                $this->indexComponentIdMap[] = $componentId;
            }
        );
    }
public function index ( ) : ColumnMappingDefiner { return new ColumnMappingDefiner ( function ( IColumn $ column ) { $ this -> column ( $ column ) ; $ this -> indexComponentIdMap [ ] = $ column -> getComponentId ( ) ; } , function ( string $ componentId ) { $ this -> indexComponentIdMap [ ] = $ componentId ; } ) ; }
Defines a mapping between the object index and the column component

@return ColumnMappingDefiner
@throws InvalidArgumentException
Defines a mapping between the object index and the column component