Table of Contents
Properties
-
$isRunning
: bool
-
$lastId
: int
Methods
-
__construct()
: mixed
-
__destruct()
: mixed
-
dispatchEvent()
: int|null
-
fetchLastEvent()
: array<string|int, mixed>|null
-
fetchNewEvents()
: iterable<string|int, mixed>
-
getStream()
: Stream
-
init()
: void
-
startRunning()
: string
-
stopRunning()
: void
$isRunning
public
bool
$isRunning
= false
$lastId
public
int
$lastId
__construct()
public
__construct([string $tableName = 'temp' ][, string $dbName = 'sse' ]) : mixed
Parameters
-
$tableName
: string
= 'temp'
-
-
$dbName
: string
= 'sse'
-
__destruct()
public
__destruct() : mixed
dispatchEvent()
public
dispatchEvent(mixed $type, mixed $data) : int|null
Parameters
-
$type
: mixed
-
-
$data
: mixed
-
fetchLastEvent()
public
fetchLastEvent() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
fetchNewEvents()
public
fetchNewEvents(mixed $lastId) : iterable<string|int, mixed>
Parameters
-
$lastId
: mixed
-
Return values
iterable<string|int, mixed>
getStream()
public
getStream() : Stream
init()
public
init([int $lastId = 0 ]) : void
Parameters
-
$lastId
: int
= 0
-
startRunning()
public
startRunning() : string
stopRunning()
public
stopRunning() : void