CompletionSuggestions
in package
FinalYes
Stores all completion suggestions for the current input.
Tags
Table of Contents
Properties
- $optionSuggestions : array<string|int, mixed>
- $valueSuggestions : array<string|int, mixed>
Methods
- getOptionSuggestions() : array<string|int, InputOption>
- getValueSuggestions() : array<string|int, Suggestion>
- suggestOption() : $this
- Add a suggestion for an input option name.
- suggestOptions() : $this
- Add multiple suggestions for input option names at once.
- suggestValue() : $this
- Add a suggested value for an input option or argument.
- suggestValues() : $this
- Add multiple suggested values at once for an input option or argument.
Properties
$optionSuggestions
private
array<string|int, mixed>
$optionSuggestions
= []
$valueSuggestions
private
array<string|int, mixed>
$valueSuggestions
= []
Methods
getOptionSuggestions()
public
getOptionSuggestions() : array<string|int, InputOption>
Return values
array<string|int, InputOption>getValueSuggestions()
public
getValueSuggestions() : array<string|int, Suggestion>
Return values
array<string|int, Suggestion>suggestOption()
Add a suggestion for an input option name.
public
suggestOption(InputOption $option) : $this
Parameters
- $option : InputOption
Return values
$thissuggestOptions()
Add multiple suggestions for input option names at once.
public
suggestOptions(array<string|int, InputOption> $options) : $this
Parameters
- $options : array<string|int, InputOption>
Return values
$thissuggestValue()
Add a suggested value for an input option or argument.
public
suggestValue(string|Suggestion $value) : $this
Parameters
- $value : string|Suggestion
Return values
$thissuggestValues()
Add multiple suggested values at once for an input option or argument.
public
suggestValues(array<int, string|Suggestion> $values) : $this
Parameters
- $values : array<int, string|Suggestion>