MCP PHP SDK

LoggingMessageNotification extends Notification

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

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

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
self

jsonSerialize()

public jsonSerialize() : NotificationData
Return values
NotificationData

        
On this page

Search results