\FacadeJsonRpc

Summary

Methods
Properties
Constants
__callStatic()
getInstance()
setInstance()
call()
connect()
addService()
$instance
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : \Core\Std\WorkerInterface

单例实体

Type

WorkerInterface

Methods

__callStatic()

__callStatic(string  $name, array  $arguments) : string

执行方法

Parameters

string $name
array $arguments

Returns

string —

getInstance()

getInstance() : \Worker\Built\JsonRpc\JsonRpcClient|\Core\Std\WorkerInterface

获取单例

Returns

\Worker\Built\JsonRpc\JsonRpcClient|\Core\Std\WorkerInterface —

setInstance()

setInstance(\Worker\Worker  $worker) : \Worker\Built\JsonRpc\JsonRpcClient|\Core\Std\WorkerInterface

设置单例

Parameters

\Worker\Worker $worker

Returns

\Worker\Built\JsonRpc\JsonRpcClient|\Core\Std\WorkerInterface —

call()

call(array  $route, mixed  $arguments) : mixed

Parameters

array $route
mixed $arguments

Returns

mixed —

connect()

connect(string  $serviceName, string  $address, string  $type) : void

Parameters

string $serviceName
string $address
string $type

addService()

addService(string  $serviceName, string  $address, string  $type) : void

Parameters

string $serviceName
string $address
string $type