Model
ValidationRule
Magento\Eav\Model\Entity\Attribute\ValidationRule
What it does
This class represents a validation rule for EAV (Entity-Attribute-Value) attributes in Magento 2.
Developers use it to define and store validation constraints on product, customer, or other entity attributes, consisting of a key-value pair that specifies the validation type and its corresponding rule value.
Public Methods
- getKey()
- getValue()
- setKey()
- setValue()