Password
class Password extends ObjectValidationAttribute
Methods
static string
keyword()
Get the Validator rule keyword.
static ValidationAttribute
create(string ...$parameters)
Reject string-based password rule construction.
static mixed
parseBooleanValue(mixed $value)
Parse a validation boolean value.
from
ValidationAttribute
from
ValidationAttribute
mixed
normalizePossibleExternalReferenceParameter(mixed $parameter)
Resolve a possible external reference parameter.
from
ValidationAttribute
object|string
__construct(int|ExternalReference $min = 12, bool|ExternalReference $letters = false, bool|ExternalReference $mixedCase = false, bool|ExternalReference $numbers = false, bool|ExternalReference $symbols = false, bool|ExternalReference $uncompromised = false, int|ExternalReference $uncompromisedThreshold = 0, bool|ExternalReference $default = false, Password|null $rule = null)
Create a password validation attribute.
int
bool
Details
at line 82
static string
keyword()
Get the Validator rule keyword.
at line 90
static ValidationAttribute
create(string ...$parameters)
Reject string-based password rule construction.
in
ValidationAttribute at line 30
string
__toString()
Get the rule in Validator string form.
in
ValidationAttribute at line 38
static protected mixed
parseDateValue(mixed $value)
Parse a validation date value.
in
ValidationAttribute at line 60
static protected mixed
parseBooleanValue(mixed $value)
Parse a validation boolean value.
in
ValidationAttribute at line 80
protected FieldReference
parseFieldReference(string|FieldReference $reference)
Parse a field reference.
in
ValidationAttribute at line 91
protected mixed
normalizePossibleExternalReferenceParameter(mixed $parameter)
Resolve a possible external reference parameter.
at line 35
object|string
getRule(ValidationPath $path)
Get the Validator rule object.
at line 19
__construct(int|ExternalReference $min = 12, bool|ExternalReference $letters = false, bool|ExternalReference $mixedCase = false, bool|ExternalReference $numbers = false, bool|ExternalReference $symbols = false, bool|ExternalReference $uncompromised = false, int|ExternalReference $uncompromisedThreshold = 0, bool|ExternalReference $default = false, Password|null $rule = null)
Create a password validation attribute.
at line 98
protected int
resolveInteger(int|ExternalReference $value, string $parameter)
Resolve an integer parameter.
at line 112
protected bool
resolveBoolean(bool|ExternalReference $value, string $parameter)
Resolve a boolean parameter.