Добавлены методы получения почтового адреса

scope = address
This commit is contained in:
2020-08-17 17:51:52 +03:00
parent 927601d0e0
commit 5ad486f920

View File

@@ -272,6 +272,28 @@ class SeptemberFirstUser implements ResourceOwnerInterface
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');
}
/**
* Элемент массива данных о пользователе
*