Documentation

CompletionSuggestions
in package

FinalYes

Stores all completion suggestions for the current input.

Tags
author

Wouter de Jong wouter@wouterj.nl

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

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|Suggestion$values) : $this
Parameters
$values : array<int, string|Suggestion>
Return values
$this

        
On this page

Search results