Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Static Protected Attributes
AbstractAddress Class Reference
Inheritance diagram for AbstractAddress:
AbstractExtensibleModel AddressModelInterface AbstractModel CustomAttributesDataInterface DataObject ExtensibleDataInterface Address Address

Public Member Functions

 __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Directory\Helper\Data $directoryData, \Magento\Eav\Model\Config $eavConfig, Config $addressConfig, \Magento\Directory\Model\RegionFactory $regionFactory, \Magento\Directory\Model\CountryFactory $countryFactory, AddressMetadataInterface $metadataService, AddressInterfaceFactory $addressDataFactory, RegionInterfaceFactory $regionDataFactory, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[], CompositeValidator $compositeValidator=null)
 
 getName ()
 
 getStreet ()
 
 getStreetLine ($number)
 
 getStreetFull ()
 
 setStreetFull ($street)
 
 setStreet ($street)
 
 setData ($key, $value=null)
 
 explodeStreetAddress ()
 
 getRegion ()
 
 getRegionCode ()
 
 getRegionId ()
 
 getCountry ()
 
 getCountryModel ()
 
 getRegionModel ($regionId=null)
 
 format ($type)
 
 getConfig ()
 
 beforeSave ()
 
 validate ()
 
 unsRegion ()
 
- Public Member Functions inherited from AbstractExtensibleModel
 __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
 
 getCustomAttributes ()
 
 getCustomAttribute ($attributeCode)
 
 setCustomAttributes (array $attributes)
 
 setCustomAttribute ($attributeCode, $attributeValue)
 
 setData ($key, $value=null)
 
 unsetData ($key=null)
 
 getData ($key='', $index=null)
 
 setId ($value)
 
 __sleep ()
 
 __wakeup ()
 
- Public Member Functions inherited from AbstractModel
 __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
 
 __sleep ()
 
 __wakeup ()
 
 setIdFieldName ($name)
 
 getIdFieldName ()
 
 getId ()
 
 setId ($value)
 
 isDeleted ($isDeleted=null)
 
 hasDataChanges ()
 
 setData ($key, $value=null)
 
 unsetData ($key=null)
 
 setDataChanges ($value)
 
 getOrigData ($key=null)
 
 setOrigData ($key=null, $data=null)
 
 dataHasChangedFor ($field)
 
 getResourceName ()
 
 getResourceCollection ()
 
 getCollection ()
 
 load ($modelId, $field=null)
 
 beforeLoad ($identifier, $field=null)
 
 afterLoad ()
 
 isSaveAllowed ()
 
 setHasDataChanges ($flag)
 
 save ()
 
 afterCommitCallback ()
 
 isObjectNew ($flag=null)
 
 beforeSave ()
 
 validateBeforeSave ()
 
 getCacheTags ()
 
 cleanModelCache ()
 
 afterSave ()
 
 delete ()
 
 beforeDelete ()
 
 afterDelete ()
 
 afterDeleteCommit ()
 
 getResource ()
 
 getEntityId ()
 
 setEntityId ($entityId)
 
 clearInstance ()
 
 getStoredData ()
 
 getEventPrefix ()
 
- Public Member Functions inherited from DataObject
 __construct (array $data=[])
 
 addData (array $arr)
 
 setData ($key, $value=null)
 
 unsetData ($key=null)
 
 getData ($key='', $index=null)
 
 getDataByPath ($path)
 
 getDataByKey ($key)
 
 setDataUsingMethod ($key, $args=[])
 
 getDataUsingMethod ($key, $args=null)
 
 hasData ($key='')
 
 toArray (array $keys=[])
 
 convertToArray (array $keys=[])
 
 toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 toJson (array $keys=[])
 
 convertToJson (array $keys=[])
 
 toString ($format='')
 
 __call ($method, $args)
 
 isEmpty ()
 
 serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"')
 
 debug ($data=null, &$objects=[])
 
 offsetSet ($offset, $value)
 
 offsetExists ($offset)
 
 offsetUnset ($offset)
 
 offsetGet ($offset)
 

Data Fields

const TYPE_BILLING = 'billing'
 
const TYPE_SHIPPING = 'shipping'
 
- Data Fields inherited from CustomAttributesDataInterface
const CUSTOM_ATTRIBUTES = 'custom_attributes'
 
- Data Fields inherited from ExtensibleDataInterface
const EXTENSION_ATTRIBUTES_KEY = 'extension_attributes'
 

Protected Member Functions

 isAddressMultilineAttribute ($code)
 
 _implodeArrayField (array $data)
 
 _implodeArrayValues ($value)
 
 _createRegionInstance ()
 
 _createCountryInstance ()
 
 isCompanyRequired ()
 
 isTelephoneRequired ()
 
 isFaxRequired ()
 
- Protected Member Functions inherited from AbstractExtensibleModel
 filterCustomAttributes ($data)
 
 initializeCustomAttributes ()
 
 convertCustomAttributeValues (array &$customAttributes)
 
 getCustomAttributesCodes ()
 
 _setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
 
 _getExtensionAttributes ()
 
- Protected Member Functions inherited from AbstractModel
 _construct ()
 
 _init ($resourceModel)
 
 _setResourceModel ($resourceName, $collectionName=null)
 
 _getResource ()
 
 _getEventData ()
 
 _beforeLoad ($modelId, $field=null)
 
 _afterLoad ()
 
 _hasModelChanged ()
 
 _getValidatorBeforeSave ()
 
 _createValidatorBeforeSave ()
 
 _getValidationRulesBeforeSave ()
 
 _clearReferences ()
 
 _clearData ()
 
- Protected Member Functions inherited from DataObject
 _getData ($key)
 
 _underscore ($name)
 

Protected Attributes

 $_eventPrefix = 'customer_address'
 
 $_eventObject = 'customer_address'
 
 $_directoryData = null
 
 $_eavConfig
 
 $_addressConfig
 
 $_regionFactory
 
 $_countryFactory
 
 $metadataService
 
 $addressDataFactory
 
 $regionDataFactory
 
 $dataObjectHelper
 
- Protected Attributes inherited from AbstractExtensibleModel
 $extensionAttributesFactory
 
 $extensionAttributes
 
 $customAttributeFactory
 
 $customAttributesCodes = null
 
 $customAttributesChanged = false
 
- Protected Attributes inherited from AbstractModel
 $_eventPrefix = 'core_abstract'
 
 $_eventObject = 'object'
 
 $_idFieldName = 'id'
 
 $_hasDataChanges = false
 
 $_origData
 
 $_isDeleted = false
 
 $_resource
 
 $_resourceCollection
 
 $_resourceName
 
 $_collectionName
 
 $_cacheTag = false
 
 $_dataSaveAllowed = true
 
 $_isObjectNew = null
 
 $_validatorBeforeSave = null
 
 $_eventManager
 
 $_cacheManager
 
 $_registry
 
 $_logger
 
 $_appState
 
 $_actionValidator
 
 $storedData = []
 
- Protected Attributes inherited from DataObject
 $_data = []
 

Static Protected Attributes

static $_countryModels = []
 
static $_regionModels = []
 
- Static Protected Attributes inherited from DataObject
static $_underscoreCache = []
 

Detailed Description

Address abstract model

@method string getPrefix() @method string getSuffix() @method string getFirstname() @method string getMiddlename() @method string getLastname() @method int getCountryId() @method string getCity() @method string getTelephone() @method string getCompany() @method string getFax() @method string getPostcode() @method bool getShouldIgnoreValidation() @SuppressWarnings(PHPMD.CouplingBetweenObjects)

@api

Since
100.0.2

Definition at line 38 of file AbstractAddress.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\Model\Context  $context,
\Magento\Framework\Registry  $registry,
\Magento\Framework\Api\ExtensionAttributesFactory  $extensionFactory,
\Magento\Framework\Api\AttributeValueFactory  $customAttributeFactory,
\Magento\Directory\Helper\Data  $directoryData,
\Magento\Eav\Model\Config  $eavConfig,
Config  $addressConfig,
\Magento\Directory\Model\RegionFactory  $regionFactory,
\Magento\Directory\Model\CountryFactory  $countryFactory,
AddressMetadataInterface  $metadataService,
AddressInterfaceFactory  $addressDataFactory,
RegionInterfaceFactory  $regionDataFactory,
\Magento\Framework\Api\DataObjectHelper  $dataObjectHelper,
\Magento\Framework\Model\ResourceModel\AbstractResource  $resource = null,
\Magento\Framework\Data\Collection\AbstractDb  $resourceCollection = null,
array  $data = [],
CompositeValidator  $compositeValidator = null 
)
Parameters
\Magento\Framework\Model\Context$context
\Magento\Framework\Registry$registry
\Magento\Framework\Api\ExtensionAttributesFactory$extensionFactory
\Magento\Framework\Api\AttributeValueFactory$customAttributeFactory
\Magento\Directory\Helper\Data$directoryData
\Magento\Eav\Model\Config$eavConfig
Config$addressConfig
\Magento\Directory\Model\RegionFactory$regionFactory
\Magento\Directory\Model\CountryFactory$countryFactory
AddressMetadataInterface$metadataService
AddressInterfaceFactory$addressDataFactory
RegionInterfaceFactory$regionDataFactory
\Magento\Framework\Api\DataObjectHelper$dataObjectHelper
\Magento\Framework\Model\ResourceModel\AbstractResource$resource
\Magento\Framework\Data\Collection\AbstractDb$resourceCollection
array$data
CompositeValidator$compositeValidator@SuppressWarnings(PHPMD.ExcessiveParameterList)

Definition at line 146 of file AbstractAddress.php.

164  {
165  $this->_directoryData = $directoryData;
166  $data = $this->_implodeArrayField($data);
167  $this->_eavConfig = $eavConfig;
168  $this->_addressConfig = $addressConfig;
169  $this->_regionFactory = $regionFactory;
170  $this->_countryFactory = $countryFactory;
171  $this->metadataService = $metadataService;
172  $this->addressDataFactory = $addressDataFactory;
173  $this->regionDataFactory = $regionDataFactory;
174  $this->dataObjectHelper = $dataObjectHelper;
175  $this->compositeValidator = $compositeValidator ?: ObjectManager::getInstance()
176  ->get(CompositeValidator::class);
177  parent::__construct(
178  $context,
179  $registry,
180  $extensionFactory,
182  $resource,
183  $resourceCollection,
184  $data
185  );
186  }
$resource
Definition: bulk.php:12

Member Function Documentation

◆ _createCountryInstance()

_createCountryInstance ( )
protected
Returns
\Magento\Directory\Model\Country

Definition at line 604 of file AbstractAddress.php.

605  {
606  return $this->_countryFactory->create();
607  }

◆ _createRegionInstance()

_createRegionInstance ( )
protected
Returns
\Magento\Directory\Model\Region

Definition at line 596 of file AbstractAddress.php.

597  {
598  return $this->_regionFactory->create();
599  }

◆ _implodeArrayField()

_implodeArrayField ( array  $data)
protected

Implode value of the array field, if it is present among other fields

Parameters
array$data
Returns
array

Definition at line 303 of file AbstractAddress.php.

304  {
305  foreach ($data as $key => $value) {
306  if (is_array($value) && $this->isAddressMultilineAttribute($key)) {
307  $data[$key] = $this->_implodeArrayValues($data[$key]);
308  }
309  }
310  return $data;
311  }
$value
Definition: gender.phtml:16

◆ _implodeArrayValues()

_implodeArrayValues (   $value)
protected

Combine values of field lines into a single string

Parameters
string[]|string$value
Returns
string

Definition at line 319 of file AbstractAddress.php.

320  {
321  if (is_array($value)) {
322  if (!count($value)) {
323  return '';
324  }
325 
326  $isScalar = false;
327  foreach ($value as $val) {
328  if (is_scalar($val)) {
329  $isScalar = true;
330  }
331  }
332  if ($isScalar) {
333  $value = trim(implode("\n", $value));
334  }
335  }
336  return $value;
337  }
$value
Definition: gender.phtml:16

◆ beforeSave()

beforeSave ( )
Returns
$this

Definition at line 507 of file AbstractAddress.php.

508  {
509  parent::beforeSave();
510  $this->getRegion();
511  return $this;
512  }

◆ explodeStreetAddress()

explodeStreetAddress ( )

Create fields street1, street2, etc.

To be used in controllers for views data

Returns
$this

Implements AddressModelInterface.

Definition at line 346 of file AbstractAddress.php.

347  {
348  $streetLines = $this->getStreet();
349  foreach ($streetLines as $i => $line) {
350  $this->setData('street' . ($i + 1), $line);
351  }
352  return $this;
353  }
$i
Definition: gallery.phtml:31

◆ format()

format (   $type)

Format address in a specific way

Deprecated, use this code instead: $renderer = $this->_addressConfig->getFormatByCode('html')->getRenderer(); $addressMapper = \Magento\Customer\Model\Address\Mapper type $addressData = $addressMapper->toFlatArray($address); $formattedAddress = $renderer->renderArray($addressData);

Parameters
string$type
Returns
string|null

Definition at line 485 of file AbstractAddress.php.

486  {
487  if (!($formatType = $this->getConfig()->getFormatByCode($type)) || !$formatType->getRenderer()) {
488  return null;
489  }
490  $this->_eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $this]);
491  return $formatType->getRenderer()->render($this);
492  }
$type
Definition: item.phtml:13

◆ getConfig()

getConfig ( )

Retrieve address config object

Returns
Config

Definition at line 499 of file AbstractAddress.php.

◆ getCountry()

getCountry ( )
Returns
int

Definition at line 430 of file AbstractAddress.php.

431  {
432  $country = $this->getCountryId();
433  return $country ? $country : $this->getData('country');
434  }

◆ getCountryModel()

getCountryModel ( )

Retrieve country model

Returns
\Magento\Directory\Model\Country

Definition at line 441 of file AbstractAddress.php.

442  {
443  if (!isset(self::$_countryModels[$this->getCountryId()])) {
444  $country = $this->_createCountryInstance();
445  $country->load($this->getCountryId());
446  self::$_countryModels[$this->getCountryId()] = $country;
447  }
448 
449  return self::$_countryModels[$this->getCountryId()];
450  }

◆ getName()

getName ( )

Get full customer name

Returns
string

Definition at line 193 of file AbstractAddress.php.

194  {
195  $name = '';
196  if ($this->_eavConfig->getAttribute('customer_address', 'prefix')->getIsVisible() && $this->getPrefix()) {
197  $name .= $this->getPrefix() . ' ';
198  }
199  $name .= $this->getFirstname();
200  $middleName = $this->_eavConfig->getAttribute('customer_address', 'middlename');
201  if ($middleName->getIsVisible() && $this->getMiddlename()) {
202  $name .= ' ' . $this->getMiddlename();
203  }
204  $name .= ' ' . $this->getLastname();
205  if ($this->_eavConfig->getAttribute('customer_address', 'suffix')->getIsVisible() && $this->getSuffix()) {
206  $name .= ' ' . $this->getSuffix();
207  }
208  return $name;
209  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

◆ getRegion()

getRegion ( )

Retrieve region name

Returns
string

Definition at line 360 of file AbstractAddress.php.

361  {
362  $regionId = $this->getData('region_id');
363  $region = $this->getData('region');
364 
365  if (!$regionId && is_numeric($region)) {
366  if ($this->getRegionModel($region)->getCountryId() == $this->getCountryId()) {
367  $this->setData('region', $this->getRegionModel($region)->getName());
368  $this->setData('region_id', $region);
369  }
370  } elseif ($regionId) {
371  if ($this->getRegionModel($regionId)->getCountryId() == $this->getCountryId()) {
372  $this->setData('region', $this->getRegionModel($regionId)->getName());
373  }
374  } elseif (is_string($region)) {
375  $this->setData('region', $region);
376  }
377 
378  return $this->getData('region');
379  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17

◆ getRegionCode()

getRegionCode ( )

Return 2 letter state code if available, otherwise full region name

Returns
string

Definition at line 386 of file AbstractAddress.php.

387  {
388  $regionId = $this->getData('region_id');
389  $region = $this->getData('region');
390 
391  if (!$regionId && is_numeric($region)) {
392  if ($this->getRegionModel($region)->getCountryId() == $this->getCountryId()) {
393  $this->setData('region_code', $this->getRegionModel($region)->getCode());
394  }
395  } elseif ($regionId) {
396  if ($this->getRegionModel($regionId)->getCountryId() == $this->getCountryId()) {
397  $this->setData('region_code', $this->getRegionModel($regionId)->getCode());
398  }
399  } elseif (is_string($region)) {
400  $this->setData('region_code', $region);
401  }
402  return $this->getData('region_code');
403  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17

◆ getRegionId()

getRegionId ( )
Returns
int

Definition at line 408 of file AbstractAddress.php.

409  {
410  $regionId = $this->getData('region_id');
411  $region = $this->getData('region');
412  if (!$regionId) {
413  if (is_numeric($region)) {
414  $this->setData('region_id', $region);
415  $this->unsRegion();
416  } else {
417  $regionModel = $this->_createRegionInstance()->loadByCode(
418  $this->getRegionCode(),
419  $this->getCountryId()
420  );
421  $this->setData('region_id', $regionModel->getId());
422  }
423  }
424  return $this->getData('region_id');
425  }

◆ getRegionModel()

getRegionModel (   $regionId = null)

Retrieve country model

Parameters
int | null$regionId
Returns
\Magento\Directory\Model\Region

Definition at line 458 of file AbstractAddress.php.

459  {
460  if ($regionId === null) {
461  $regionId = $this->getRegionId();
462  }
463 
464  if (!isset(self::$_regionModels[$regionId])) {
465  $region = $this->_createRegionInstance();
466  $region->load($regionId);
467  self::$_regionModels[$regionId] = $region;
468  }
469 
470  return self::$_regionModels[$regionId];
471  }

◆ getStreet()

getStreet ( )

Retrieve street field of an address

Returns
string[]

Definition at line 216 of file AbstractAddress.php.

217  {
218  if (is_array($this->getStreetFull())) {
219  return $this->getStreetFull();
220  }
221  return explode("\n", $this->getStreetFull());
222  }

◆ getStreetFull()

getStreetFull ( )

Retrieve text of street lines, concatenated using LF symbol

Returns
string

Definition at line 241 of file AbstractAddress.php.

242  {
243  $street = $this->getData('street');
244  return is_array($street) ? implode("\n", $street) : $street;
245  }

◆ getStreetLine()

getStreetLine (   $number)

Get steet line by number

Parameters
int$number
Returns
string

Implements AddressModelInterface.

Definition at line 230 of file AbstractAddress.php.

231  {
232  $lines = $this->getStreet();
233  return isset($lines[$number - 1]) ? $lines[$number - 1] : '';
234  }
$number
Definition: details.phtml:22

◆ isAddressMultilineAttribute()

isAddressMultilineAttribute (   $code)
protected

Check that address can have multiline attribute by this code (as street or some custom attribute)

Parameters
string$code
Returns
bool

Definition at line 292 of file AbstractAddress.php.

293  {
294  return $code == 'street' || in_array($code, $this->getCustomAttributesCodes());
295  }
$code
Definition: info.phtml:12

◆ isCompanyRequired()

isCompanyRequired ( )
protected
Returns
bool
Since
101.0.0

Definition at line 623 of file AbstractAddress.php.

624  {
625  return ($this->_eavConfig->getAttribute('customer_address', 'company')->getIsRequired());
626  }

◆ isFaxRequired()

isFaxRequired ( )
protected
Returns
bool
Since
101.0.0

Definition at line 641 of file AbstractAddress.php.

642  {
643  return ($this->_eavConfig->getAttribute('customer_address', 'fax')->getIsRequired());
644  }

◆ isTelephoneRequired()

isTelephoneRequired ( )
protected
Returns
bool
Since
101.0.0

Definition at line 632 of file AbstractAddress.php.

633  {
634  return ($this->_eavConfig->getAttribute('customer_address', 'telephone')->getIsRequired());
635  }

◆ setData()

setData (   $key,
  $value = null 
)

Enforce format of the street field or other multiline custom attributes

Parameters
array | string$key
null$value
Returns
\Magento\Framework\DataObject

Definition at line 277 of file AbstractAddress.php.

278  {
279  if (is_array($key)) {
280  $key = $this->_implodeArrayField($key);
281  } elseif (is_array($value) && $this->isAddressMultilineAttribute($key)) {
283  }
284  return parent::setData($key, $value);
285  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$value
Definition: gender.phtml:16

◆ setStreet()

setStreet (   $street)

Non-magic setter for a street field

Parameters
string|string[]$street
Returns
$this

Definition at line 264 of file AbstractAddress.php.

265  {
266  $this->setData('street', $street);
267  return $this;
268  }

◆ setStreetFull()

setStreetFull (   $street)

Alias for a street setter. To be used though setDataUsingMethod('street_full', $value).

Parameters
string|string[]$street
Returns
$this

Definition at line 253 of file AbstractAddress.php.

254  {
255  return $this->setStreet($street);
256  }

◆ unsRegion()

unsRegion ( )

Unset Region from address

Returns
$this
Since
101.0.0

Definition at line 614 of file AbstractAddress.php.

615  {
616  return $this->unsetData("region");
617  }

◆ validate()

validate ( )

Validate address attribute values.

Returns
array|bool

Definition at line 578 of file AbstractAddress.php.

579  {
580  if ($this->getShouldIgnoreValidation()) {
581  return true;
582  }
583 
584  $errors = $this->compositeValidator->validate($this);
585 
586  if (empty($errors)) {
587  return true;
588  }
589 
590  return $errors;
591  }
$errors
Definition: overview.phtml:9

Field Documentation

◆ $_addressConfig

$_addressConfig
protected

Definition at line 90 of file AbstractAddress.php.

◆ $_countryFactory

$_countryFactory
protected

Definition at line 100 of file AbstractAddress.php.

◆ $_countryModels

$_countryModels = []
staticprotected

Definition at line 66 of file AbstractAddress.php.

◆ $_directoryData

$_directoryData = null
protected

Definition at line 80 of file AbstractAddress.php.

◆ $_eavConfig

$_eavConfig
protected

Definition at line 85 of file AbstractAddress.php.

◆ $_eventObject

$_eventObject = 'customer_address'
protected

Definition at line 59 of file AbstractAddress.php.

◆ $_eventPrefix

$_eventPrefix = 'customer_address'
protected

Definition at line 52 of file AbstractAddress.php.

◆ $_regionFactory

$_regionFactory
protected

Definition at line 95 of file AbstractAddress.php.

◆ $_regionModels

$_regionModels = []
staticprotected

Definition at line 73 of file AbstractAddress.php.

◆ $addressDataFactory

$addressDataFactory
protected

Definition at line 110 of file AbstractAddress.php.

◆ $dataObjectHelper

$dataObjectHelper
protected

Definition at line 120 of file AbstractAddress.php.

◆ $metadataService

$metadataService
protected

Definition at line 105 of file AbstractAddress.php.

◆ $regionDataFactory

$regionDataFactory
protected

Definition at line 115 of file AbstractAddress.php.

◆ TYPE_BILLING

const TYPE_BILLING = 'billing'

Possible customer address types

Definition at line 43 of file AbstractAddress.php.

◆ TYPE_SHIPPING

const TYPE_SHIPPING = 'shipping'

Definition at line 45 of file AbstractAddress.php.


The documentation for this class was generated from the following file: