class PasswordValidator extends AbstractValidator (View source)

Validator for passwords

Properties

protected array $supportedOptions

Methods

void
isValid(mixed $value)

Returns true, if the given property ($value) is a valid array consistent of two equal passwords and their length is between 'minimum' (defaults to 0 if not specified) and 'maximum' (defaults to infinite if not specified) to be specified in the validation options.

Details

protected void isValid(mixed $value)

Returns true, if the given property ($value) is a valid array consistent of two equal passwords and their length is between 'minimum' (defaults to 0 if not specified) and 'maximum' (defaults to infinite if not specified) to be specified in the validation options.

If at least one error occurred, the result is false.

Parameters

mixed $value

The value that should be validated

Return Value

void

Exceptions

InvalidSubjectException