jsonrpc
in package
Table of Contents
Properties
- $additionnalParams : mixed
- $applicationName : mixed
- $id : mixed
- $jsonrpc : mixed
- $method : mixed
- $params : mixed
- $startTime : mixed
Methods
- __construct() : mixed
- getAdditionnalParams() : mixed
- getApplicationName() : mixed
- getId() : mixed
- getJsonrpc() : mixed
- getMethod() : mixed
- getParams() : mixed
- getStartTime() : mixed
- makeError() : never
- Sends an error response and ends execution
- makeSuccess() : never
- Sends a success response and ends execution
- setAdditionnalParams() : mixed
- setApplicationName() : mixed
Properties
$additionnalParams
private
mixed
$additionnalParams
= array()
$applicationName
private
mixed
$applicationName
$id
private
mixed
$id
= 99999
$jsonrpc
private
mixed
$jsonrpc
$method
private
mixed
$method
$params
private
mixed
$params
$startTime
private
mixed
$startTime
Methods
__construct()
public
__construct(string $_jsonrpc) : mixed
Parameters
- $_jsonrpc : string
getAdditionnalParams()
public
getAdditionnalParams([mixed $_key = '' ][, mixed $_default = '' ]) : mixed
Parameters
- $_key : mixed = ''
- $_default : mixed = ''
getApplicationName()
public
getApplicationName() : mixed
getId()
public
getId() : mixed
getJsonrpc()
public
getJsonrpc() : mixed
getMethod()
public
getMethod() : mixed
getParams()
public
getParams() : mixed
getStartTime()
public
getStartTime() : mixed
makeError()
Sends an error response and ends execution
public
makeError(int $_code, string $_message) : never
Parameters
- $_code : int
-
Error code
- $_message : string
-
Error message
Return values
nevermakeSuccess()
Sends a success response and ends execution
public
makeSuccess([mixed $_result = null ]) : never
Parameters
- $_result : mixed = null
-
Data to send in response
Return values
neversetAdditionnalParams()
public
setAdditionnalParams(mixed $_key, mixed $_value) : mixed
Parameters
- $_key : mixed
- $_value : mixed
setApplicationName()
public
setApplicationName(mixed $applicationName) : mixed
Parameters
- $applicationName : mixed