InputInterface::bind()

bind(InputDefinition $definition) Binds the current Input instance with the given arguments and options. Parameters InputDefinition $definition A InputDefinition instance

InputInterface

interface InputInterface InputInterface is the interface implemented by all input classes. Methods string getFirstArgument() Returns the first argument from the raw parameters (not parsed). bool hasParameterOption(string|array $values, bool $onlyParams = false) Returns true if the raw parameters (not parsed) contain a value. mixed getParameterOption(string|array $values, mixed $default = false, bool $onlyParams = false) Returns the value of a raw option (not parsed). bind(

InputFormField

class InputFormField extends FormField InputFormField represents an input form field (an HTML input tag). For inputs with type of file, checkbox, or radio, there are other more specialized classes (cf. FileFormField and ChoiceFormField). Methods __construct(DOMElement $node) Constructor. from FormField string getName() Returns the name of the field. from FormField string|array getValue() Gets the value of the field. from FormField setValue(string $value) Sets the value of the

InputDefinition::setOptions()

setOptions(InputOption[] $options = array()) Sets the InputOption objects. Parameters InputOption[] $options An array of InputOption objects

InputDefinition::setDefinition()

setDefinition(array $definition) Sets the definition of the input. Parameters array $definition The definition array

InputDefinition::setArguments()

setArguments(InputArgument[] $arguments = array()) Sets the InputArgument objects. Parameters InputArgument[] $arguments An array of InputArgument objects

InputDefinition::hasShortcut()

bool hasShortcut(string $name) Returns true if an InputOption object exists by shortcut. Parameters string $name The InputOption shortcut Return Value bool true if the InputOption object exists, false otherwise

InputDefinition::hasOption()

bool hasOption(string $name) Returns true if an InputOption object exists by name. This method can't be used to check if the user included the option when executing the command (use getOption() instead). Parameters string $name The InputOption name Return Value bool true if the InputOption object exists, false otherwise

InputDefinition::hasArgument()

bool hasArgument(string|int $name) Returns true if an InputArgument object exists by name or position. Parameters string|int $name The InputArgument name or position Return Value bool true if the InputArgument object exists, false otherwise

InputDefinition::getSynopsis()

string getSynopsis(bool $short = false) Gets the synopsis. Parameters bool $short Whether to return the short version (with options folded) or not Return Value string The synopsis