Form/DataTransformer/ShippingCostCollectionToArrayTransformer.php
private function getRangeData(ShippingMethodCost $cost)
    {
        return [
            'min'   => $cost->getRangeFrom(),
            'max'   => $cost->getRangeTo(),
            'price' => $cost->getCost()->getGrossAmount(),
        ];
    }
private function getRangeData(ShippingMethodCost $cost)
    {
        return [
            'min'   => $cost->getRangeFrom(),
            'max'   => $cost->getRangeTo(),
            'price' => $cost->getCost()->getGrossAmount(),
        ];
    }
private function getRangeData ( ShippingMethodCost $ cost ) { return [ 'min' => $ cost -> getRangeFrom ( ) , 'max' => $ cost -> getRangeTo ( ) , 'price' => $ cost -> getCost ( ) -> getGrossAmount ( ) , ] ; }
Returns costs data as an array

@param ShippingMethodCost $cost

@return array
Returns costs data as an array