todo |
Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions? |
Methods
Cast request to string (JSON)
__toString() : string
Add a parameter to the request
addParam(mixed $value, string $key) : \Zend\Json\Server\Request
Parameters
$value
mixed
$key
string
Returns
Retrieve request identifier
getId() : mixed
Get request method name
getMethod() : string
Retrieve param by index or key
getParam(int | string $index) : mixed | null
Parameters
$index
intstring
Returns
mixed
null
Null when not found
Retrieve parameters
getParams() : array
Retrieve JSON-RPC version
getVersion() : string
Was a bad method provided?
isMethodError() : bool
Was a malformed JSON provided?
isParseError() : bool
Set request state based on JSON
loadJson(string $json) : void
Cast request to JSON
toJson() : string
Properties
Flag
$isMethodError : bool
Flag
$isParseError : bool
Requested method
$method : string
Regex for method
$methodRegex : string
Request parameters
$params : array
JSON-RPC version of request
$version : string