Table of Contents
Properties
-
$dataConverter
: DataConverterInterface
Methods
-
__construct()
: mixed
-
decode()
: ServerRequestInterface|ServerResponseInterface
-
assertCommandID()
: void
-
isUInt32()
: bool
-
parseFailureResponse()
: FailureResponseInterface
-
parseRequest()
: ServerRequestInterface
-
parseResponse()
: SuccessResponseInterface
__construct()
public
__construct(DataConverterInterface $dataConverter) : mixed
Parameters
-
$dataConverter
: DataConverterInterface
-
decode()
public
decode(array<string|int, mixed> $command, TickInfo $info) : ServerRequestInterface|ServerResponseInterface
Parameters
-
$command
: array<string|int, mixed>
-
-
$info
: TickInfo
-
-
throws
-
Exception
assertCommandID()
private
assertCommandID(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
isUInt32()
private
isUInt32(mixed $value) : bool
Parameters
-
$value
: mixed
-
parseFailureResponse()
private
parseFailureResponse(array<string|int, mixed> $data, TickInfo $info) : FailureResponseInterface
Parameters
-
$data
: array<string|int, mixed>
-
-
$info
: TickInfo
-
parseRequest()
private
parseRequest(array<string|int, mixed> $data, TickInfo $info) : ServerRequestInterface
Parameters
-
$data
: array<string|int, mixed>
-
-
$info
: TickInfo
-
parseResponse()
private
parseResponse(array<string|int, mixed> $data, TickInfo $info) : SuccessResponseInterface
Parameters
-
$data
: array<string|int, mixed>
-
-
$info
: TickInfo
-