Property | Type | Description | |
---|---|---|---|
$rpcMethods | containing the mapping from RPC method names to the actual handlers |
Method | Description | |
---|---|---|
addMethod ( string $methodName, array $handlerDetails ) | Registers a new RPC method and handler details | |
callApiMethod ( string $methodName, array $parameters ) : mixed | Calls the callback handler for the given method | |
callMethod ( $requestPayload ) : processed | ||
createErrorResponse ( |
||
createResponseHeaders ( $response ) | ||
decode ( $data ) : mixed | Decodes the request payload | |
encode ( $data ) : string | Encodes the response |
abstract public callMethod ( $requestPayload ) : processed | ||
return | processed | response |
abstract public createErrorResponse ( |
||
$exception | ||
return | a | response representing the error |