ValidationRuleInterface
Magento\Customer\Api\Data\ValidationRuleInterface
What it does
This interface defines the contract for validation rules in Magento 2's Customer module.
Developers use this to create or work with validation rules that specify constraints for customer data fields, such as minimum/maximum length, required formats, or value ranges.
Each validation rule has a name (e.g., 'min_text_length') and a corresponding value (e.g., '5') that defines the validation criteria.
Public Methods
- getName()
- setName()
- getValue()
- setValue()