PHP Class App\Events\SongLikeToggled

Inheritance: extends App\Events\Event, use trait Illuminate\Queue\SerializesModels
Mostra file Open project: phanan/koel

Public Properties

Property Type Description
$interaction app\models\Interaction The interaction (like/unlike) in action.
$user app\models\User The user who carries the action.

Public Methods

Method Description
__construct ( Interaction $interaction, User $user = null ) Create a new event instance.
broadcastOn ( ) : array Get the channels the event should be broadcast on.

Method Details

__construct() public method

Create a new event instance.
public __construct ( Interaction $interaction, User $user = null )
$interaction app\models\Interaction
$user app\models\User

broadcastOn() public method

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

Property Details

$interaction public_oe property

The interaction (like/unlike) in action.
public Interaction,App\Models $interaction
return app\models\Interaction

$user public_oe property

The user who carries the action.
public User,App\Models $user
return app\models\User