\adminmatrix\swoole\rpcProtocol

Summary

Methods
Properties
Constants
make()
getInterface()
getMethod()
getParams()
getContext()
setInterface()
setMethod()
setParams()
setContext()
No public properties found
ACTION_INTERFACE
FILE
No protected methods found
No protected properties found
N/A
No private methods found
$interface
$method
$params
$context
N/A

Constants

ACTION_INTERFACE

ACTION_INTERFACE = '@action_interface'

FILE

FILE = '@file'

Properties

$interface

$interface : string

Type

string

$method

$method : string

Type

string

$params

$params : array

Type

array

$context

$context : array

Type

array

Methods

make()

make(string  $interface, string  $method, array  $params, array  $context = []) : \adminmatrix\swoole\rpc\Protocol

Replace constructor

Parameters

string $interface
string $method
array $params
array $context

Returns

\adminmatrix\swoole\rpc\Protocol —

getInterface()

getInterface() : string

Returns

string —

getMethod()

getMethod() : string

Returns

string —

getParams()

getParams() : array

Returns

array —

getContext()

getContext() : array

Returns

array —

setInterface()

setInterface(string  $interface) : void

Parameters

string $interface

setMethod()

setMethod(string  $method) : void

Parameters

string $method

setParams()

setParams(array  $params) : void

Parameters

array $params

setContext()

setContext(array  $context) : void

Parameters

array $context