/**
* @internal
*/
public function __construct( protected Entity|LineItem
$item,
protected CalculatedPrice
$price,
protected ScriptPriceStubs
$priceStubs,
protected SalesChannelContext
$context ) { if (!
$this->price instanceof CalculatedCheapestPrice
) { throw ProductException::
invalidCheapestPriceFacade($this->item->
getUniqueIdentifier());
} if (!
$this->item instanceof Entity
) { throw ProductException::
invalidCheapestPriceFacade($this->item->
getUniqueIdentifier());
} } /**
* `reset()` allows to reset the cheapest price to the original price of the product.
*
* @example pricing-cases/product-pricing.twig 64 1 Reset the product price to default
*/