Interface
ValidatorInterface
Magento\Customer\Model\Address\ValidatorInterface
What it does
This interface defines a contract for validating customer address instances in Magento 2.
Developers implement this interface to create custom address validators that check if an address object meets specific validation rules, returning an array of error messages if validation fails.
It's commonly used when saving or updating customer addresses to ensure data integrity.
Public Methods
- validate()