[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/console/Input/ -> ArrayInput.php (summary)

(no description)

File Size: 210 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ArrayInput:: (9 methods):
  __construct()
  getFirstArgument()
  hasParameterOption()
  getParameterOption()
  __toString()
  parse()
  addShortOption()
  addLongOption()
  addArgument()


Class: ArrayInput  - X-Ref

ArrayInput represents an input provided as an array.

Usage:

$input = new ArrayInput(['command' => 'foo:bar', 'foo' => 'bar', '--bar' => 'foobar']);

__construct(array $parameters, InputDefinition $definition = null)   X-Ref
No description

getFirstArgument()   X-Ref
{@inheritdoc}


hasParameterOption($values, bool $onlyParams = false)   X-Ref
{@inheritdoc}


getParameterOption($values, $default = false, bool $onlyParams = false)   X-Ref
{@inheritdoc}


__toString()   X-Ref
Returns a stringified representation of the args passed to the command.

return: string

parse()   X-Ref
{@inheritdoc}


addShortOption(string $shortcut, $value)   X-Ref
Adds a short option value.


addLongOption(string $name, $value)   X-Ref
Adds a long option value.


addArgument($name, $value)   X-Ref
Adds an argument value.

param: string|int $name  The argument name
param: mixed      $value The value for the argument



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer