30 private $streetName =
'';
40 private $streetNumber =
'';
51 private $addressAddition = null;
62 private $dispatchingInfo = null;
82 private $location =
'';
93 private $country = null;
104 private $countryISOCode = null;
115 private $state = null;
128 unset($this->streetName);
129 unset($this->streetNumber);
130 unset($this->addressAddition);
131 unset($this->dispatchingInfo);
133 unset($this->location);
134 unset($this->country);
135 unset($this->countryISOCode);
145 return $this->streetName;
154 $this->streetName = $streetName;
163 return $this->streetNumber;
172 $this->streetNumber = $streetNumber;
181 return $this->addressAddition;
190 $this->addressAddition = $addressAddition;
199 return $this->dispatchingInfo;
208 $this->dispatchingInfo = $dispatchingInfo;
235 return $this->location;
244 $this->location = $location;
253 return $this->location;
262 $this->location = $city;
271 return $this->country;
280 if($country !== null)
281 $this->country = mb_strtolower($country);
283 $this->country = null;
292 return $this->countryISOCode;
301 if($countryISOCode !== null)
302 $this->countryISOCode = mb_strtoupper($countryISOCode);
304 $this->countryISOCode = null;
322 $this->state = $state;
335 trigger_error(
'[DHL-PHP-SDK]: Called deprecated method ' . __METHOD__ .
': Buggy on some addresses, please separate the number and street by yourself. This method will removed in the future!', E_USER_DEPRECATED);
339 preg_match(
'/^([^\d]*[^\d\s]) *(\d.*)$/', $street, $match);
341 if(count($match) == 0)
return;
setStreetName($streetName)
setStreetNumber($streetNumber)
setAddressAddition($addressAddition)
setDispatchingInfo($dispatchingInfo)
setCountryISOCode($countryISOCode)