$rule =
new LineItemWithQuantityRule();
$rule->
assign(['id' =>
$itemID, 'quantity' =>
$quantity, 'operator' => LineItemWithQuantityRule::OPERATOR_GTE
]);
return $rule;
} /**
* @param array<mixed> $itemIDs
*/
private function getProductsRule(array
$itemIDs): LineItemRule
{ $rule =
new LineItemRule();
$rule->
assign(['identifiers' =>
$itemIDs, 'operator' => LineItemRule::OPERATOR_EQ
]);
return $rule;
} private function getLineItemListPriceRule(float
$price): LineItemListPriceRule
{ $rule =
new LineItemListPriceRule();
$rule->
assign(['amount' =>
$price, 'operator' => LineItemListPriceRule::OPERATOR_GTE
]);
return $rule;
}