Model
AbstractAddress
Magento\Customer\Model\Address\AbstractAddress
What it does
This abstract class serves as the base model for customer addresses in Magento 2, handling address data operations like formatting, validation, and regional information.
Developers use this when working with customer billing/shipping addresses, extending it for custom address functionality, or when needing to manipulate address attributes like street lines, regions, and countries.
Public Methods
- getName()
- getStreet()
- getStreetLine()
- getStreetFull()
- setStreetFull()
- setStreet()
- setData()
- explodeStreetAddress()
- getRegion()
- getRegionCode()
- getRegionId()
- getCountry()
- getCountryModel()
- getRegionModel()
- format()
- getConfig()
- beforeSave()
- getDataModel()
- validate()
- unsRegion()
- _resetState()