CountryInformationInterface
Magento\Directory\Api\Data\CountryInformationInterface
What it does
This interface defines the contract for country information data objects in Magento 2.
Developers use it when working with country data through the API, retrieving country details like ID, two/three letter abbreviations (US/USA), localized and English names, and associated regions/states.
It's commonly used in checkout, address management, and store configuration features where country information needs to be retrieved or manipulated.
Public Methods
- getId()
- setId()
- getTwoLetterAbbreviation()
- setTwoLetterAbbreviation()
- getThreeLetterAbbreviation()
- setThreeLetterAbbreviation()
- getFullNameLocale()
- setFullNameLocale()
- getFullNameEnglish()
- setFullNameEnglish()
- getAvailableRegions()
- setAvailableRegions()
- getExtensionAttributes()
- setExtensionAttributes()