Interface
ValidationRuleInterface
Magento\Customer\Api\Data\ValidationRuleInterface
What it does
This interface defines a validation rule data structure used in Magento 2's customer module.
Developers use this to define and retrieve validation rules (like max_length, min_length, or input_validation) for customer attributes and form fields, where each rule has a name and corresponding value that determines validation behavior.
Public Methods
- getName()
- setName()
- getValue()
- setValue()