PHP Class Overtrue\LaravelWechat\Events\WeChatUserAuthorized

Inheritance: use trait Illuminate\Queue\SerializesModels
Show file Open project: overtrue/laravel-wechat

Public Properties

Property Type Description
$isNewSession
$user

Public Methods

Method Description
__construct ( Overtrue\Socialite\User $user, boolean $isNewSession = false ) : void Create a new event instance.
broadcastOn ( ) : array Get the channels the event should be broadcast on.
getUser ( ) : Overtrue\Socialite\User Retrieve the authorized user.
isNewSession ( ) : boolean Check the user session is first created.

Method Details

__construct() public method

Create a new event instance.
public __construct ( Overtrue\Socialite\User $user, boolean $isNewSession = false ) : void
$user Overtrue\Socialite\User
$isNewSession boolean
return void

broadcastOn() public method

Get the channels the event should be broadcast on.
public broadcastOn ( ) : array
return array

getUser() public method

Retrieve the authorized user.
public getUser ( ) : Overtrue\Socialite\User
return Overtrue\Socialite\User

isNewSession() public method

Check the user session is first created.
public isNewSession ( ) : boolean
return boolean

Property Details

$isNewSession public property

public $isNewSession

$user public property

public $user