$wrapper =
new AndRule([ new CurrencyRule(CurrencyRule::OPERATOR_EQ,
$currencyIds),
$rule,
]);
static::
assertTrue($wrapper->
match($scope));
} } private function createLineItemWithListPrice(?float
$listPriceAmount): LineItem
{ $listPrice =
$listPriceAmount === null ? null : ListPrice::
createFromUnitPrice(400,
$listPriceAmount);
$listPriceAmount ??= 99.99;
return $this->
createLineItemWithPrice(LineItem::PRODUCT_LINE_ITEM_TYPE,
$listPriceAmount,
$listPrice);
}}