PHP 클래스 App\Events\SongLikeToggled

상속: extends App\Events\Event, use trait Illuminate\Queue\SerializesModels
파일 보기 프로젝트 열기: phanan/koel

공개 프로퍼티들

프로퍼티 타입 설명
$interaction app\models\Interaction The interaction (like/unlike) in action.
$user app\models\User The user who carries the action.

공개 메소드들

메소드 설명
__construct ( Interaction $interaction, User $user = null ) Create a new event instance.
broadcastOn ( ) : array Get the channels the event should be broadcast on.

메소드 상세

__construct() 공개 메소드

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

broadcastOn() 공개 메소드

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

프로퍼티 상세

$interaction 공개적으로 프로퍼티

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

$user 공개적으로 프로퍼티

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