Overtrue\Socialite\Providers\WeiboProvider::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->arrayItem($user, 'id'), 'nickname' => $this->arrayItem($user, 'screen_name'), 'name' => $this->arrayItem($user, 'name'), 'email' => $this->arrayItem($user, 'email'), 'avatar' => $this->arrayItem($user, 'avatar_large')]);
    }