return $value;
} private function getPriceForTaxState(Price
$price, SalesChannelContext
$context): float
{ if ($context->
getTaxState() === CartPrice::TAX_STATE_GROSS
) { return $price->
getGross();
} return $price->
getNet();
} private function getMatchingPriceOfRule(Delivery
$delivery, SalesChannelContext
$context, ShippingMethodPriceCollection
$shippingPrices): ?CalculatedPrice
{ $shippingPrices->
sort( function DShippingMethodPriceEntity
$priceEntityA, ShippingMethodPriceEntity
$priceEntityB) use ($context) { /** @var PriceCollection $priceCollectionA */
$priceCollectionA =
$priceEntityA->
getCurrencyPrice();
$priceA =
$this->
getCurrencyPrice($priceCollectionA,
$context);
/** @var PriceCollection $priceCollectionB */