29 lines
729 B
PHP
29 lines
729 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\Capability\Tool;
|
|
|
|
use Mcp\Exception\InvalidCursorException;
|
|
|
|
/**
|
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
|
*/
|
|
interface CollectionInterface
|
|
{
|
|
/**
|
|
* @param int $count the number of metadata items to return
|
|
*
|
|
* @return iterable<MetadataInterface>
|
|
*
|
|
* @throws InvalidCursorException if no item with $lastIdentifier was found
|
|
*/
|
|
public function getMetadata(int $count, ?string $lastIdentifier = null): iterable;
|
|
}
|