Model
ValidationRule
Magento\Customer\Model\Data\ValidationRule
What it does
This class represents a single validation rule for customer attributes, storing a rule name and its corresponding value.
Developers use it when working with customer attribute validation, such as defining input validation rules (e.g., max_text_length, min_text_length) that will be applied to customer form fields on the frontend and backend.
Public Methods
- getName()
- getValue()
- setName()
- setValue()