EnumCompletionProvider implements ProviderInterface
Tags
Table of Contents
Interfaces
Properties
- $values : array<string|int, string>
Methods
- __construct() : mixed
- getCompletions() : array<string|int, string>
- Get completions for a given current value.
Properties
$values
private
array<string|int, string>
$values
Methods
__construct()
public
__construct(class-string $enumClass) : mixed
Parameters
- $enumClass : class-string
getCompletions()
Get completions for a given current value.
public
getCompletions(string $currentValue) : array<string|int, string>
Parameters
- $currentValue : string
-
the current value to get completions for
Return values
array<string|int, string> —the completions