コード例 #1
0
 public function isEqualTo(UserInterface $user)
 {
     if (!$user instanceof OAuth2User) {
         return false;
     }
     if ($this->access_token !== $user->getAccessToken()) {
         return false;
     }
     if ($this->client_id !== $user->getClientId()) {
         return false;
     }
     if ($this->user_id !== $user->getUserId()) {
         return false;
     }
     return true;
 }