37 lines
967 B
PHP
37 lines
967 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the official PHP MCP SDK.
|
|
*
|
|
* A collaboration between Symfony and the PHP Foundation.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Mcp\Schema\Notification;
|
|
|
|
use Mcp\Schema\JsonRpc\Notification;
|
|
|
|
/**
|
|
* An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
|
|
*
|
|
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
|
|
*/
|
|
class ResourceListChangedNotification extends Notification
|
|
{
|
|
public static function getMethod(): string
|
|
{
|
|
return 'notifications/resources/list_changed';
|
|
}
|
|
|
|
protected static function fromParams(?array $params): Notification
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
protected function getParams(): ?array
|
|
{
|
|
return null;
|
|
}
|
|
}
|