, 'greaterThan'}, string, float} */ public static function getGreaterThanParameters( float $threshold ): array { return [ [ FormValidators::class, 'greaterThan' ], // translators: %d is numeric threshold. __( 'Enter number greater than %d', 'packeta' ), $threshold, ]; } /** * Creates date validator parts for addRule form method. * * @return array{array{class-string, 'dateIsInMysqlFormat'}, string} */ public static function getDateParameters(): array { return [ [ FormValidators::class, 'dateIsInMysqlFormat' ], __( 'Please enter date in proper format.', 'packeta' ), ]; } }