| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class GoogleOAuthService |
||
| 12 | { |
||
| 13 | private Google_Client $googleClient; |
||
| 14 | private EntityManagerInterface $em; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Google_Client $googleClient |
||
| 18 | * @param EntityManagerInterface $em |
||
| 19 | */ |
||
| 20 | public function __construct(Google_Client $googleClient, EntityManagerInterface $em) |
||
| 21 | { |
||
| 22 | $this->googleClient = $googleClient; |
||
| 23 | $this->em = $em; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param User $user |
||
| 28 | */ |
||
| 29 | public function refreshAccessTokenIfExpired(User $user): void |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param User $user |
||
| 44 | * |
||
| 45 | * @throws GoogleApiException |
||
| 46 | */ |
||
| 47 | public function revoke(User $user): void |
||
| 57 | } |
||
| 58 | } |
||
| 59 |