BroadcastEvent

class BroadcastEvent (View source)

Properties

protected Broadcaster $broadcaster The broadcaster implementation.

Methods

void __construct(Broadcaster $broadcaster)

Create a new job handler instance.

void fire(Job $job, array $data)

Handle the queued job.

array getPayloadFromEvent(mixed $event)

Get the payload for the given event.

mixed formatProperty(mixed $value)

Format the given value for a property.

Details

void __construct(Broadcaster $broadcaster)

Create a new job handler instance.

Parameters

Broadcaster $broadcaster

Return Value

void

void fire(Job $job, array $data)

Handle the queued job.

Parameters

Job $job
array $data

Return Value

void

protected array getPayloadFromEvent(mixed $event)

Get the payload for the given event.

Parameters

mixed $event

Return Value

array

protected mixed formatProperty(mixed $value)

Format the given value for a property.

Parameters

mixed $value

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Broadcasting/BroadcastEvent.html