JsonRpcNotification
class JsonRpcNotification
Methods
__construct(string $method, array $params)
Create a JSON-RPC notification.
static JsonRpcNotification
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.
at line 29
static JsonRpcNotification
from(array $jsonRequest)
Parse a JSON-RPC notification.
at line 56
array
toArray()
Convert the notification to an array.
at line 68
string
toJson(int $options = 0)
Encode the notification as JSON.