class JsonRpcNotification

Methods

__construct(string $method, array $params)

Create a JSON-RPC notification.

from(array $jsonRequest)

Parse a JSON-RPC notification.

array
toArray()

Convert the notification to an array.

string
toJson(int $options = 0)

Encode the notification as JSON.

Details

at line 16
__construct(string $method, array $params)

Create a JSON-RPC notification.

Parameters

string $method
array $params

at line 29
static JsonRpcNotification from(array $jsonRequest)

Parse a JSON-RPC notification.

Parameters

array $jsonRequest

Return Value

JsonRpcNotification

Exceptions

JsonRpcException

at line 56
array toArray()

Convert the notification to an array.

Return Value

array

at line 68
string toJson(int $options = 0)

Encode the notification as JSON.

Parameters

int $options

Return Value

string