package Default

 Methods

Cast to string (JSON)

__toString() : string

Returns

string

Retrieve args

getArgs() : mixed

Returns

mixed

Get response error

getError() : null | \Zend\Json\Server\Error

Returns

null\Zend\Json\Server\Error

Get request ID

getId() : mixed

Returns

mixed

Get result

getResult() : mixed

Returns

mixed

Retrieve service map

getServiceMap() : \Zend\Json\Server\Smd | null

Returns

\Zend\Json\Server\Smdnull

Retrieve JSON-RPC version

getVersion() : string

Returns

string

Is the response an error?

isError() : boolean

Returns

boolean

Set response state based on JSON

loadJson(string $json) : void

Parameters

$json

string

Exceptions

\Zend\Json\Server\Exception\RuntimeException

Set args

setArgs(mixed $args) : \Zend\Json\Server\Response
fluent This method is part of a fluent interface and will return the same instance

Parameters

$args

mixed

Returns

\Zend\Json\Server\Response

Set result error

setError(mixed $error = null) : \Zend\Json\Server\Response

Parameters

$error

mixed

Returns

\Zend\Json\Server\Response

Set request ID

setId(mixed $name) : \Zend\Json\Server\Response

Parameters

$name

mixed

Returns

\Zend\Json\Server\Response

Set response state

setOptions(array $options) : \Zend\Json\Server\Response

Parameters

$options

array

Returns

\Zend\Json\Server\Response

Set result

setResult(mixed $value) : \Zend\Json\Server\Response

Parameters

$value

mixed

Returns

\Zend\Json\Server\Response

Set service map object

setServiceMap(\Zend\Json\Server\Smd $serviceMap) : \Zend\Json\Server\Response

Parameters

$serviceMap

\Zend\Json\Server\Smd

Returns

\Zend\Json\Server\Response

Set JSON-RPC version

setVersion(string $version) : \Zend\Json\Server\Response

Parameters

$version

string

Returns

\Zend\Json\Server\Response

Cast to JSON

toJson() : string

Returns

string

 Properties

 

$args

$args : 

Default

 

Response error

$error : null | \Zend\Json\Server\Error

Default

 

Request ID

$id : mixed

Default

 

Result

$result : mixed

Default

 

Service map

$serviceMap : \Zend\Json\Server\Smd

Default

 

JSON-RPC version

$version : string

Default