private function useCashRounding(Context
$context): bool
{ if ($context->
getRounding()->
getDecimals() !== 2
) { return false;
} if ($context->
getTaxState() === CartPrice::TAX_STATE_GROSS
) { return true;
} return $context->
getRounding()->
roundForNet();
} /**
* @return array<int, array<string, string|float>>
*/
private function getCheapestPriceAccessors(Context
$context, bool
$percentage = false
): array
{ $accessors =
[];
$tax =
$context->
getTaxState() === CartPrice::TAX_STATE_GROSS ? 'gross' : 'net';