class JanrainUserAddress in Janrain Registration 8
The user address.
Hierarchy
- class \Drupal\janrain_capture\User\JanrainDataContainer
- class \Drupal\janrain_capture\User\JanrainUserAddress
Expanded class hierarchy of JanrainUserAddress
File
- src/
User/ JanrainUserAddress.php, line 8
Namespace
Drupal\janrain_capture\UserView source
class JanrainUserAddress extends JanrainDataContainer {
/**
* {@inheritdoc}
*/
protected function get($name) : string {
return isset($this->{$name}) ? (string) $this->{$name} : '';
}
/**
* {@inheritdoc}
*/
public function getStreet() : string {
return sprintf('%s %s %s %s', $this
->get('streetName1'), $this
->get('streetName2'), $this
->get('streetName3'), $this
->get('streetName4'));
}
/**
* {@inheritdoc}
*/
public function getAdministrativeArea() : string {
return $this
->get('administrativeArea');
}
/**
* {@inheritdoc}
*/
public function getSubAdministrativeArea() : string {
return $this
->get('subAdministrativeArea');
}
/**
* {@inheritdoc}
*/
public function getPostalCode() : string {
return $this
->get('postalCode');
}
/**
* {@inheritdoc}
*/
public function getCountry() : string {
return $this
->get('country');
}
/**
* {@inheritdoc}
*/
public function getWorkplace() : string {
return $this
->get('workplace');
}
/**
* {@inheritdoc}
*/
public function getRegion() : string {
return $this
->get('municipality');
}
/**
* {@inheritdoc}
*/
public function getDepartment() : string {
return $this
->get('department');
}
/**
* {@inheritdoc}
*/
public function getDistrict() : string {
return $this
->get('district');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JanrainDataContainer:: |
protected | property | The profile's data. | |
JanrainDataContainer:: |
public | function | 1 | |
JanrainDataContainer:: |
public | function | ||
JanrainDataContainer:: |
public | function | ||
JanrainDataContainer:: |
public | function | ||
JanrainUserAddress:: |
protected | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function | ||
JanrainUserAddress:: |
public | function |