PriceCollection
$prices,
SalesChannelContext
$context,
UnitCollection
$units,
ReferencePriceDto
$reference,
int
$quantity = 1
): QuantityPriceDefinition
{ $price =
$this->
getPriceValue($prices,
$context);
$taxId =
$product->
get('taxId'
);
$definition =
new QuantityPriceDefinition($price,
$context->
buildTaxRules($taxId),
$quantity);
$definition->
setReferencePriceDefinition( $this->
buildReferencePriceDefinition($reference,
$units) );
$definition->
setListPrice( $this->
getListPrice($prices,
$context) );
$definition->
setRegulationPrice( $this->
getRegulationPrice($prices,
$context) );
return $definition;
}