JanrainUserAddress.php in Janrain Registration 8
File
src/User/JanrainUserAddress.php
View source
<?php
namespace Drupal\janrain_capture\User;
class JanrainUserAddress extends JanrainDataContainer {
protected function get($name) : string {
return isset($this->{$name}) ? (string) $this->{$name} : '';
}
public function getStreet() : string {
return sprintf('%s %s %s %s', $this
->get('streetName1'), $this
->get('streetName2'), $this
->get('streetName3'), $this
->get('streetName4'));
}
public function getAdministrativeArea() : string {
return $this
->get('administrativeArea');
}
public function getSubAdministrativeArea() : string {
return $this
->get('subAdministrativeArea');
}
public function getPostalCode() : string {
return $this
->get('postalCode');
}
public function getCountry() : string {
return $this
->get('country');
}
public function getWorkplace() : string {
return $this
->get('workplace');
}
public function getRegion() : string {
return $this
->get('municipality');
}
public function getDepartment() : string {
return $this
->get('department');
}
public function getDistrict() : string {
return $this
->get('district');
}
}