Model
ValidationRule
Magento\Customer\Model\Data\ValidationRule
What it does
This class represents a single validation rule for customer attributes in Magento 2.
Developers use it to define and manage validation constraints (like max length, required fields, or regex patterns) that should be applied to customer data fields.
It's commonly used when creating custom customer attributes or configuring validation rules through the API.
Public Methods
- getName()
- getValue()
- setName()
- setValue()