ServerSentEvent
extends DataChunk
in package
implements
ChunkInterface
FinalYes
Tags
Table of Contents
Interfaces
- ChunkInterface
- The interface of chunks returned by ResponseStreamInterface::current().
Properties
Methods
- __construct() : mixed
- getData() : string
- getId() : string
- getRetry() : float
- getType() : string
Properties
$data
private
mixed
$data
= ''
$id
private
mixed
$id
= ''
$retry
private
mixed
$retry
= 0
$type
private
mixed
$type
= 'message'
Methods
__construct()
public
__construct(string $content) : mixed
Parameters
- $content : string
getData()
public
getData() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetRetry()
public
getRetry() : float
Return values
floatgetType()
public
getType() : string