Notification implements HasMethodInterface, MessageInterface
AbstractYes
Tags
Table of Contents
Interfaces
- HasMethodInterface
- Interface for all incoming JSON-RPC messages that should be processed by a handler, and are expected to have a method.
- MessageInterface
- Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
Properties
- $meta : array<string, mixed>|null
Methods
- fromArray() : self
- getMethod() : string
- jsonSerialize() : NotificationData
- fromParams() : self
- getParams() : array<string, mixed>|null
Properties
$meta
protected
array<string, mixed>|null
$meta
= null
Methods
fromArray()
public
static fromArray(NotificationData $data) : self
Parameters
- $data : NotificationData
Return values
selfgetMethod()
public
abstract static getMethod() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : NotificationData
Return values
NotificationDatafromParams()
protected
abstract static fromParams(array<string, mixed>|null $params) : self
Parameters
- $params : array<string, mixed>|null
Return values
selfgetParams()
protected
abstract getParams() : array<string, mixed>|null