Request 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
Methods
- fromArray() : static
- getId() : string|int
- getMeta() : array<string, mixed>|null
- getMethod() : string
- jsonSerialize() : RequestData
- withId() : static
- withMeta() : static
- fromParams() : static
- getParams() : array<non-empty-string, mixed>|null
Properties
$id
protected
string|int
$id
$meta
protected
array<string, mixed>|null
$meta
= null
Methods
fromArray()
public
static fromArray(RequestData $data) : static
Parameters
- $data : RequestData
Return values
staticgetId()
public
getId() : string|int
Return values
string|intgetMeta()
public
getMeta() : array<string, mixed>|null
Return values
array<string, mixed>|nullgetMethod()
public
abstract static getMethod() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : RequestData
Return values
RequestDatawithId()
public
withId(string|int $id) : static
Parameters
- $id : string|int
Return values
staticwithMeta()
public
withMeta(array<string, mixed>|null $meta) : static
Parameters
- $meta : array<string, mixed>|null
Return values
staticfromParams()
protected
abstract static fromParams(array<string, mixed>|null $params) : static
Parameters
- $params : array<string, mixed>|null
Return values
staticgetParams()
protected
abstract getParams() : array<non-empty-string, mixed>|null