public function getConstraints(): array
{ return [ 'shouldCustomerBeCreatedByAdmin' => RuleConstraints::
bool(true
),
];
} public function getConfig(): RuleConfig
{ return (new RuleConfig()) ->
booleanField('shouldCustomerBeCreatedByAdmin'
);
}}