Overtrue\Socialite\Providers\QQProvider::mapUserToObject PHP Method

mapUserToObject() protected method

Map the raw user array to a Socialite User instance.
protected mapUserToObject ( array $user ) : Overtrue\Socialite\User
$user array
return Overtrue\Socialite\User
    protected function mapUserToObject(array $user)
    {
        return new User(['id' => $this->openId, 'unionid' => $this->unionId, 'nickname' => $this->arrayItem($user, 'nickname'), 'name' => $this->arrayItem($user, 'nickname'), 'email' => $this->arrayItem($user, 'email'), 'avatar' => $this->arrayItem($user, 'figureurl_qq_2')]);
    }