final public const RULE_NAME = 'customerDaysSinceLastOrder';
public int
$count;
protected function getDate(RuleScope
$scope): ?\DateTimeInterface
{ if (!
$customer =
$scope->
getSalesChannelContext()->
getCustomer()) { return null;
} return $customer->
getLastOrderDate();
} protected function supportsScope(RuleScope
$scope): bool
{ return $scope instanceof CheckoutRuleScope;
}}