RpcMethod
class RpcMethod (View source)
RPC Method object
It create a method's object ready to inject into RpcServer.
Constants
FETCH_ASSOC |
|
FETCH_NUMERIC |
|
Properties
static array | $rpcvalues | Generic-to-RPC values map |
Methods
Class constructor
Get the method's name
Get the method's callback
Set the method's description
Get the method's method
Get additional arguments to forward to callback
Add a signature and switch internal pointer
Get the method's signatures
Get the current method's signature
Delete a signature
Select a signature
Set the current signature's return type
Get the current signature's return type
Add a parameter to current signature
Delete a parameter from current signature
Get current signature's parameters
Details
at line 107
__construct($name, callable $callback, ...$arguments)
Class constructor
at line 128
string
getName()
Get the method's name
at line 139
callable
getCallback()
Get the method's callback
at line 170
string|null
getDescription()
Get the method's method
at line 181
array
getArguments()
Get additional arguments to forward to callback
at line 214
array
getSignatures(bool $compact = true)
Get the method's signatures
at line 243
array
getSignature(bool $compact = true)
Get the current method's signature
at line 265
bool
deleteSignature(integer $signature)
Delete a signature
at line 324
string
getReturnType()
Get the current signature's return type
at line 376
array
getParameters(string $format = self::FETCH_ASSOC)
Get current signature's parameters