EventSource
in package
implements
EventSourceInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- EventSource constructor.
- eventStreamFormat() : string
- setEvent() : self
- setId() : self
- setTime() : self
Properties
$datas
private
mixed
$datas
= []
$event
private
mixed
$event
$id
private
mixed
$id
$time
private
mixed
$time
Methods
__construct()
EventSource constructor.
public
__construct(mixed $datas) : mixed
Parameters
- $datas : mixed
eventStreamFormat()
public
eventStreamFormat() : string
Return values
stringsetEvent()
public
setEvent(mixed $event) : self
Parameters
- $event : mixed
Return values
selfsetId()
public
setId(mixed $id) : self
Parameters
- $id : mixed
Return values
selfsetTime()
public
setTime(mixed $time) : self
Parameters
- $time : mixed