MCP PHP SDK

CompletionProvider

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Attributes
#[Attribute]
\Attribute::TARGET_PARAMETER

Table of Contents

Properties

$enum  : string|null
$provider  : string|ProviderInterface|null
$providerClass  : string|null
$values  : array<string|int, mixed>|null

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct([string|null $providerClass = null ][, ProviderInterface>|ProviderInterface|null $provider = null ][, array<int, int|float|string>|null $values = null ][, string|null $enum = null ]) : mixed
Parameters
$providerClass : string|null = null
$provider : ProviderInterface>|ProviderInterface|null = null

if a class-string, it will be resolved from the container at the point of use

$values : array<int, int|float|string>|null = null

a list of values to use for completion

$enum : string|null = null

        
On this page

Search results