LoggingNotificationHandler implements NotificationHandlerInterface
Handler for logging message notifications from the server.
Tags
Table of Contents
Interfaces
- NotificationHandlerInterface
- Interface for handling notifications from the server.
Properties
- $callback : mixed
Methods
- __construct() : mixed
- handle() : void
- Handle the notification.
- supports() : bool
- Check if this handler supports the given notification.
Properties
$callback read-only
private
mixed
$callback
Methods
__construct()
public
__construct(callable(LoggingMessageNotification): void $callback) : mixed
Parameters
- $callback : callable(LoggingMessageNotification): void
handle()
Handle the notification.
public
handle(Notification $notification) : void
Parameters
- $notification : Notification
supports()
Check if this handler supports the given notification.
public
supports(Notification $notification) : bool
Parameters
- $notification : Notification