2 Commits

Author SHA1 Message Date
1fe3ca9cd9 Добавлены телефоны и СНИЛС 2021-04-29 11:57:08 +03:00
7a7723a140 Update composer.json 2021-03-24 12:10:38 +03:00
2 changed files with 14 additions and 4 deletions

View File

@@ -17,7 +17,7 @@
"1sept" "1sept"
], ],
"require": { "require": {
"php": "^7.0", "php": "^7.3 || ^8",
"league/oauth2-client": "^2.0" "league/oauth2-client": "^2.0"
}, },
"require-dev": { "require-dev": {

View File

@@ -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');
} }
/** /**