Argument
in package
Attributes
- #[Attribute]
- \Attribute::TARGET_PARAMETER | \Attribute::TARGET_PROPERTY
Table of Contents
Properties
- $description : string
- $name : string
Methods
- __construct() : mixed
- Represents a console command <argument> definition.
Properties
$description
public
string
$description
= ''
$name
public
string
$name
= ''
Methods
__construct()
Represents a console command <argument> definition.
public
__construct([string $description = '' ][, string $name = '' ][, 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 = ''
- $suggestedValues : array<string|int, string|Suggestion>|callable(CompletionInput): array<int, string|Suggestion> = []
-
The values used for input completion