CompletionSuggestions
in package
Stores all completion suggestions for the current input.
Tags
Table of Contents
- $optionSuggestions : mixed
- $valueSuggestions : mixed
- 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
mixed
$optionSuggestions
= []
$valueSuggestions
private
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
$this —suggestOptions()
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
$this —suggestValue()
Add a suggested value for an input option or argument.
public
suggestValue(string|Suggestion $value) : $this
Parameters
- $value : string|Suggestion
Return values
$this —suggestValues()
Add multiple suggested values at once for an input option or argument.
public
suggestValues(array<int, string|\Symfony\Component\Console\Completion\Suggestion> $values) : $this
Parameters
- $values : array<int, string|\Symfony\Component\Console\Completion\Suggestion>