| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class SocialUserResolver implements SocialUserResolverInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var App\Services\TenantManager |
||
|
|
|||
| 14 | */ |
||
| 15 | protected $tenantManager; |
||
| 16 | |||
| 17 | public function __construct(TenantManager $tenantManager) |
||
| 18 | { |
||
| 19 | $this->tenantManager = $tenantManager; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Resolve user by provider credentials. |
||
| 24 | * |
||
| 25 | * @param string $provider |
||
| 26 | * @param string $accessToken |
||
| 27 | * |
||
| 28 | * @return Authenticatable|null |
||
| 29 | */ |
||
| 30 | public function resolveUserByProviderCredentials(string $provider, string $accessToken): ?Authenticatable |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function googleAuth(string $accessToken): ?Authenticatable |
||
| 54 | } |
||
| 55 | } |
||
| 56 |