public function getWeights()
    {
        $weights = [];

        foreach ($this->columns as $column) {
            $weights[$column->getMapping()] = $column->getWeight();
        }

        return $weights;
    }
public function getWeights()
    {
        $weights = [];

        foreach ($this->columns as $column) {
            $weights[$column->getMapping()] = $column->getWeight();
        }

        return $weights;
    }
public function getWeights ( ) { $ weights = [ ] ; foreach ( $ this -> columns as $ column ) { $ weights [ $ column -> getMapping ( ) ] = $ column -> getWeight ( ) ; } return $ weights ; }
Get array of columns mappings and weights.

@return array
Get array of columns mappings and weights .