Table of Contents
Properties
-
$isRunning
: bool
-
$lastId
: int
Methods
-
__construct()
: mixed
-
__destruct()
: mixed
-
_parseEvent()
: mixed
-
dispatchEvent()
: int|null
-
fetchLastEvent()
: array<string|int, mixed>|null
-
fetchNewEvents()
: iterable<string|int, mixed>
-
getStream()
: Stream
-
init()
: void
-
startRunning()
: string
-
stopRunning()
: void
-
install()
: void
$isRunning
public
bool
$isRunning
= false
$lastId
public
int
$lastId
__construct()
public
__construct(mixed $serverName) : mixed
Parameters
-
$serverName
: mixed
-
__destruct()
public
__destruct() : mixed
_parseEvent()
public
_parseEvent(array<string|int, mixed> &$event) : mixed
Parameters
-
$event
: array<string|int, 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
install()
protected
install() : void