AbstractAddress
Magento\Customer\Model\Address\AbstractAddress
What it does
AbstractAddress is the base model class for customer addresses in Magento 2, handling address data management including street lines, regions, countries, and formatting.
Developers use this as a foundation for working with customer billing and shipping addresses, providing methods to get/set address components, validate address data, and convert between model and data transfer objects.
It manages address attributes like name, region, country, and multi-line street addresses with built-in validation and formatting capabilities.
Public Methods
- getName()
- getStreet()
- getStreetLine()
- getStreetFull()
- setStreetFull()
- setStreet()
- setData()
- explodeStreetAddress()
- getRegion()
- getRegionCode()
- getRegionId()
- getCountry()
- getCountryModel()
- getRegionModel()
- format()
- getConfig()
- beforeSave()
- getDataModel()
- validate()
- unsRegion()
- _resetState()