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;
}}