Log in
Model

Telephone

Magento\Customer\Model\Validator\Telephone

What it does

This validator class ensures that customer telephone numbers contain only valid characters (digits, spaces, plus signs, hyphens, and parentheses).

Developers use this when validating customer data input to prevent invalid phone number formats from being saved.

It's typically called during customer registration, profile updates, or address modifications where phone numbers are required.

Public Methods

  • isValid()