StreamEvent
abstract class StreamEvent implements Stringable
Properties
| string|null | $invocationId |
Methods
array
toArray()
Get the array representation of the event.
void
void
string
type()
Get the event's type.
withInvocationId(string $id)
Set the invocation ID associated with the event.
string
__toString()
Get the string representation of the event.
Details
at line 21
abstract array
toArray()
Get the array representation of the event.
at line 26
void
broadcast(Channel|array $channels, bool $now = true)
Broadcast the stream event immediately or using the queue.
at line 41
void
broadcastNow(Channel|array $channels)
Broadcast the stream event immediately.
at line 49
string
type()
Get the event's type.
at line 57
StreamEvent
withInvocationId(string $id)
Set the invocation ID associated with the event.
at line 67
string
__toString()
Get the string representation of the event.