$this->
calculateRegulationPrice($definition,
$config) );
} private function calculateListPrice(float
$unitPrice, QuantityPriceDefinition
$definition, CashRoundingConfig
$config): ?ListPrice
{ $listPrice =
$definition->
getListPrice();
if (!
$listPrice) { return null;
} if (!
$definition->
isCalculated()) { $listPrice =
$this->
round($listPrice,
$config);
} return ListPrice::
createFromUnitPrice($unitPrice,
$listPrice);
} private function calculateRegulationPrice(QuantityPriceDefinition
$definition, CashRoundingConfig
$config): ?RegulationPrice
{ $regulationPrice =
$definition->
getRegulationPrice();
if (!
$regulationPrice) { return null;
}