InputInterface is the interface implemented by all input classes.
Methods | ||
---|---|---|
public
|
getFirstArgument(): string|null
|
# |
public
|
hasParameterOption(string|array $values, bool $onlyParams = false): bool
|
# |
public
|
getParameterOption(
string|array $values,
string|bool|int|float|array|null $default = false,
bool $onlyParams = false,
): mixed
|
# |
public
|
bind(InputDefinition $definition)
|
# |
public
|
validate()
|
# |
public
|
getArguments(): array<string|bool|int|float|array|null>
|
# |
public
|
getArgument(string $name): mixed
|
# |
public
|
setArgument(string $name, mixed $value)
|
# |
public
|
hasArgument(string $name): bool
|
# |
public
|
getOptions(): array<string|bool|int|float|array|null>
|
# |
public
|
getOption(string $name): mixed
|
# |
public
|
setOption(string $name, mixed $value)
|
# |
public
|
hasOption(string $name): bool
|
# |
public
|
isInteractive(): bool
|
# |
public
|
setInteractive(bool $interactive)
|
# |