Log in
Interface

ValidatorInterface

Magento\Directory\Model\Country\Postcode\ValidatorInterface

What it does

This interface defines a contract for validating postal codes against country-specific formatting rules.

Developers implement this interface to create validators that check if a postcode matches the expected pattern for a given country, which is commonly used during checkout or address validation processes.

Public Methods

  • validate()