Documentation

CompletionSuggestions
in package

Stores all completion suggestions for the current input.

Tags
author

Wouter de Jong wouter@wouterj.nl

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

Methods

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

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>
Return values
$this

Search results