mirror of
https://github.com/1sept/oauth2-1sept.git
synced 2024-05-30 17:38:52 +03:00
Добавлены методы получения почтового адреса
scope = address
This commit is contained in:
@@ -272,6 +272,28 @@ class SeptemberFirstUser implements ResourceOwnerInterface
|
|||||||
return $this->getField('timezone');
|
return $this->getField('timezone');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Почтовый адрес в строку
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
* @example ул. Гагарина, д.5, кв. 21, Нижний Новгород
|
||||||
|
*/
|
||||||
|
public function getAddressInline(): ?string
|
||||||
|
{
|
||||||
|
return $this->getField('address.inline');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Почтовый индекс
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
* @example 123456
|
||||||
|
*/
|
||||||
|
public function getAddressPostalcode(): ?string
|
||||||
|
{
|
||||||
|
return $this->getField('address.postal_code');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Элемент массива данных о пользователе
|
* Элемент массива данных о пользователе
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user