public function getConstraints(): array
{ $constraints =
[ 'operator' => RuleConstraints::
datetimeOperators(),
];
if ($this->operator === self::OPERATOR_EMPTY
) { return $constraints;
} $constraints['birthday'
] = RuleConstraints::
datetime();
return $constraints;
} public function match(RuleScope
$scope): bool
{ if (!
$scope instanceof CheckoutRuleScope
) { return false;
} if ($this->birthday === null &&
$this->operator !== self::OPERATOR_EMPTY
) {