Option
in package
Attributes
- #[Attribute]
- \Attribute::TARGET_PARAMETER | \Attribute::TARGET_PROPERTY
Table of Contents
Properties
- $description : string
- $name : string
- $shortcut : array<string|int, mixed>|string|null
Methods
- __construct() : mixed
- Represents a console command --option definition.
Properties
$description
public
string
$description
= ''
$name
public
string
$name
= ''
$shortcut
public
array<string|int, mixed>|string|null
$shortcut
= null
Methods
__construct()
Represents a console command --option definition.
public
__construct([string $description = '' ][, string $name = '' ][, array<string|int, mixed>|string|null $shortcut = null ][, array<string|int, string|Suggestion>|callable(CompletionInput): array<int, string|Suggestion> $suggestedValues = [] ]) : mixed
If unset, the name value will be inferred from the parameter definition.
Parameters
- $description : string = ''
- $name : string = ''
- $shortcut : array<string|int, mixed>|string|null = null
-
The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
- $suggestedValues : array<string|int, string|Suggestion>|callable(CompletionInput): array<int, string|Suggestion> = []
-
The values used for input completion