HexColor
class HexColor extends StringValidationAttribute
Methods
static string
keyword()
Get the Validator rule keyword.
static ValidationAttribute
create(string ...$parameters)
Create the attribute from parsed string parameters.
from
ValidationAttribute
mixed
normalizePossibleExternalReferenceParameter(mixed $parameter)
Resolve a possible external reference parameter.
from
ValidationAttribute
array
parameters()
Get the rule parameters.
Details
at line 15
static string
keyword()
Get the Validator rule keyword.
in
StringValidationAttribute at line 20
static ValidationAttribute
create(string ...$parameters)
Create the attribute from parsed string parameters.
in
ValidationAttribute at line 29
string
__toString()
Get the rule in Validator string form.
in
ValidationAttribute at line 37
protected FieldReference
parseFieldReference(string|FieldReference $reference)
Parse a field reference.
in
ValidationAttribute at line 48
protected mixed
normalizePossibleExternalReferenceParameter(mixed $parameter)
Resolve a possible external reference parameter.
at line 23
array
parameters()
Get the rule parameters.