Validators

FrontendUser Validator

The extension contains a validator for FrontendUser domain model that checks password and passwordConfirmation properties as well as type of $frontendUser argument.

Validation error codes

  • Error message:
    • The given object is not an instance of FrontendUser class.

    • Please make sure your passwords match.

Digit Validator (Digit)

The digital validator checks the string contains only numeric characters [0-9].

Validation error codes

  • Error message: The given subject is not a valid digit string.

Phone Validator (Phone)

Phone frontend user domain model property validator. It checks if the provided string matches the following requirements:

  • Digit or + sign in the beginning

  • Digit in the end

  • One combination of digits in parentheses is allowed

  • Space and dash as digit separator are allowed

Validation error codes

  • Error message: The given subject is not a valid phone.