RoadRunner
in package
implements
HostConnectionInterface
FinalYes
Tags
Table of Contents
Interfaces
Constants
- ERROR_HEADERS_FORMAT = 'Incorrect format of received headers. An array<string, mixed> ' . 'required, but %s (%s) given'
Properties
Methods
- __construct() : mixed
- create() : HostConnectionInterface
- error() : void
- send() : void
- waitBatch() : CommandBatch|null
- decodeHeaders() : array<string, string>
- encodeHeaders() : JsonHeaders|null
Constants
ERROR_HEADERS_FORMAT
private
string
ERROR_HEADERS_FORMAT
= 'Incorrect format of received headers. An array<string, mixed> ' . 'required, but %s (%s) given'
Properties
$codec
private
CodecInterface
$codec
$worker
private
WorkerInterface
$worker
Methods
__construct()
public
__construct(WorkerInterface $worker) : mixed
Parameters
- $worker : WorkerInterface
create()
public
static create([EnvironmentInterface|null $env = null ][, RoadRunnerVersionChecker|null $versionChecker = null ]) : HostConnectionInterface
Parameters
- $env : EnvironmentInterface|null = null
- $versionChecker : RoadRunnerVersionChecker|null = null
Return values
HostConnectionInterfaceerror()
public
error(Throwable $error) : void
Parameters
- $error : Throwable
send()
public
send(string $frame[, array<string|int, mixed> $headers = [] ]) : void
Parameters
- $frame : string
- $headers : array<string|int, mixed> = []
waitBatch()
public
waitBatch() : CommandBatch|null
Return values
CommandBatch|nulldecodeHeaders()
private
decodeHeaders([JsonHeaders|null $headers = null ]) : array<string, string>
Parameters
- $headers : JsonHeaders|null = null
Tags
Return values
array<string, string>encodeHeaders()
private
encodeHeaders(array<string, string> $headers) : JsonHeaders|null
Parameters
- $headers : array<string, string>