You are here

public function InputDefinition::addArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Input/InputDefinition.php \Symfony\Component\Console\Input\InputDefinition::addArguments()

Adds an array of InputArgument objects.

Parameters

InputArgument[] $arguments An array of InputArgument objects:

1 call to InputDefinition::addArguments()
InputDefinition::setArguments in vendor/symfony/console/Input/InputDefinition.php
Sets the InputArgument objects.

File

vendor/symfony/console/Input/InputDefinition.php, line 89

Class

InputDefinition
A InputDefinition represents a set of valid command line arguments and options.

Namespace

Symfony\Component\Console\Input

Code

public function addArguments($arguments = array()) {
  if (null !== $arguments) {
    foreach ($arguments as $argument) {
      $this
        ->addArgument($argument);
    }
  }
}