DHL-PHP-SDK  v0.4
A wrapper for the DHL-XML-API Version 2
Address Class Reference
Inheritance diagram for Address:
SendPerson Receiver ReturnReceiver Sender Filial PackStation

Public Member Functions

 __construct ()
 
 __destruct ()
 
 getStreetName ()
 
 setStreetName ($streetName)
 
 getStreetNumber ()
 
 setStreetNumber ($streetNumber)
 
 getAddressAddition ()
 
 setAddressAddition ($addressAddition)
 
 getDispatchingInfo ()
 
 setDispatchingInfo ($dispatchingInfo)
 
 getZip ()
 
 setZip ($zip)
 
 getLocation ()
 
 setLocation ($location)
 
 getCity ()
 
 setCity ($city)
 
 getCountry ()
 
 setCountry ($country)
 
 getCountryISOCode ()
 
 setCountryISOCode ($countryISOCode)
 
 getState ()
 
 setState ($state)
 
 setFullStreet ($street)
 

Detailed Description

Definition at line 21 of file Address.php.

Constructor & Destructor Documentation

§ __construct()

__construct ( )

Address constructor.

Definition at line 120 of file Address.php.

§ __destruct()

__destruct ( )

Clears the Memory

Definition at line 127 of file Address.php.

Member Function Documentation

§ getAddressAddition()

getAddressAddition ( )

Get the Address addition

Returns
null|string - Address addition or null for none

Definition at line 180 of file Address.php.

§ getCity()

getCity ( )

Alias for $this->getLocation

Returns
string - Location

Definition at line 252 of file Address.php.

§ getCountry()

getCountry ( )

Get the Country

Returns
string|null - Country or null for none

Definition at line 270 of file Address.php.

§ getCountryISOCode()

getCountryISOCode ( )

Get the Country-ISO-Code

Returns
string|null - Country-ISO-Code or null for none

Definition at line 291 of file Address.php.

§ getDispatchingInfo()

getDispatchingInfo ( )

Get the Dispatching-Info

Returns
null|string - Dispatching-Info or null for none

Definition at line 198 of file Address.php.

§ getLocation()

getLocation ( )

Get the Location

Returns
string - Location

Definition at line 234 of file Address.php.

§ getState()

getState ( )

Get the State (Geo-Location)

Returns
null|string - State (Geo-Location) or null for none

Definition at line 312 of file Address.php.

§ getStreetName()

getStreetName ( )

Get the Street name

Returns
string - Street name

Definition at line 144 of file Address.php.

§ getStreetNumber()

getStreetNumber ( )

Get the Street number

Returns
string - Street Number

Definition at line 162 of file Address.php.

§ getZip()

getZip ( )

Get the ZIP

Returns
string - ZIP

Definition at line 216 of file Address.php.

§ setAddressAddition()

setAddressAddition (   $addressAddition)

Set the Address addition

Parameters
null | string$addressAddition- Address addition or null for none

Definition at line 189 of file Address.php.

§ setCity()

setCity (   $city)

Alias for $this->setLocation

Parameters
string$city- Location

Definition at line 261 of file Address.php.

§ setCountry()

setCountry (   $country)
final

Set the Country

Parameters
string | null$country- Country or null for none

Definition at line 279 of file Address.php.

§ setCountryISOCode()

setCountryISOCode (   $countryISOCode)
final

Set the Country-ISO-Code

Parameters
string | null$countryISOCode- Country-ISO-Code or null for none

Definition at line 300 of file Address.php.

§ setDispatchingInfo()

setDispatchingInfo (   $dispatchingInfo)

Set the Dispatching-Info

Parameters
null | string$dispatchingInfo- Dispatching-Info or null for none

Definition at line 207 of file Address.php.

§ setFullStreet()

setFullStreet (   $street)
final

Sets Street-Name and Number by Address String

Found here: https://www.tricd.de/php/php-strassenname-und-hausnummer-mit-php-parsen/

Parameters
string$street- Address (Street plus number)
Deprecated:
  • Buggy on some addresses, please separate the number and street by yourself

Definition at line 334 of file Address.php.

§ setLocation()

setLocation (   $location)

Set the Location

Parameters
string$location- Location

Definition at line 243 of file Address.php.

§ setState()

setState (   $state)

Set the State (Geo-Location)

Parameters
null | string$state- State (Geo-Location) or null for none

Definition at line 321 of file Address.php.

§ setStreetName()

setStreetName (   $streetName)

Set the Street name

Parameters
string$streetName- Street name

Definition at line 153 of file Address.php.

§ setStreetNumber()

setStreetNumber (   $streetNumber)

Set the Street number

Parameters
string$streetNumber- Street Number

Definition at line 171 of file Address.php.

§ setZip()

setZip (   $zip)

Set the ZIP

Parameters
string$zip- ZIP

Definition at line 225 of file Address.php.


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