'The begin date cannot be in the future.', self::END_IN_FUTURE_ERROR => 'The end date cannot be in the future.', ]; public string $message = 'The date cannot be in the future.'; public function getTargets(): string { return self::CLASS_CONSTRAINT; } }