LoggingMessageNotification extends Notification
Tags
Table of Contents
Properties
- $data : mixed
- $level : LoggingLevel
- $logger : string|null
- $meta : array<string, mixed>|null
Methods
- __construct() : mixed
- fromArray() : self
- getMethod() : string
- jsonSerialize() : NotificationData
- fromParams() : Notification
- getParams() : array<string, mixed>|null
Properties
$data read-only
public
mixed
$data
$level read-only
public
LoggingLevel
$level
$logger read-only
public
string|null
$logger
= null
$meta
protected
array<string, mixed>|null
$meta
= null
Methods
__construct()
public
__construct(LoggingLevel $level, mixed $data[, string|null $logger = null ]) : mixed
Parameters
- $level : LoggingLevel
-
the severity of this log message
- $data : mixed
-
The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
- $logger : string|null = null
-
an optional name of the logger issuing this message
fromArray()
public
static fromArray(NotificationData $data) : self
Parameters
- $data : NotificationData
Return values
selfgetMethod()
public
static getMethod() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : NotificationData
Return values
NotificationDatafromParams()
protected
static fromParams(array<string|int, mixed>|null $params) : Notification
Parameters
- $params : array<string|int, mixed>|null
Return values
NotificationgetParams()
protected
getParams() : array<string, mixed>|null