public function match(RuleScope
$scope): bool
{ if (!
$scope instanceof CheckoutRuleScope
) { return false;
} if (!
$customer =
$scope->
getSalesChannelContext()->
getCustomer()) { return RuleComparison::
isNegativeOperator($this->operator
);
} return RuleComparison::
numeric($customer->
getOrderTotalAmount(),
$this->amount,
$this->operator
);
} public function getConstraints(): array
{ return [ 'amount' => RuleConstraints::
float(),
'operator' => RuleConstraints::
numericOperators(false
),
];
} public function getConfig(): RuleConfig
{