mirror of
https://github.com/1sept/oauth2-1sept.git
synced 2024-05-30 17:38:52 +03:00
Добавлены телефоны и СНИЛС
This commit is contained in:
@@ -241,13 +241,23 @@ class SeptemberFirstUser implements ResourceOwnerInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Номер телефона
|
* Номера телефонов
|
||||||
|
*
|
||||||
|
* @return array|null
|
||||||
|
*/
|
||||||
|
public function getPhones(): ?array
|
||||||
|
{
|
||||||
|
return $this->getField('phones');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* СНИЛС
|
||||||
*
|
*
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public function getPhone(): ?string
|
public function getSnils(): ?string
|
||||||
{
|
{
|
||||||
return $this->getField('phone');
|
return $this->getField('passport.snils');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user