class ValidationRuleFactory

Constants

protected MAPPING

The attribute class for each rule keyword.

A constant, so the mapping is not rebuilt for every rule string.

Methods

create(string|ParameterizedRule $rule)

Create the validation attribute for a Validator rule.

array
mapping()

Get the attribute class for each rule keyword.

Details

at line 260
ValidationRule create(string|ParameterizedRule $rule)

Create the validation attribute for a Validator rule.

Parameters

string|ParameterizedRule $rule

Return Value

ValidationRule

Exceptions

CouldNotCreateValidationRule

at line 278
protected array mapping()

Get the attribute class for each rule keyword.

Return Value

array