You are here

public function InputDefinition::getArgumentDefaults in Zircon Profile 8.0

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

Gets the default values.

Return value

array An array of default values

File

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

Class

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

Namespace

Symfony\Component\Console\Input

Code

public function getArgumentDefaults() {
  $values = array();
  foreach ($this->arguments as $argument) {
    $values[$argument
      ->getName()] = $argument
      ->getDefault();
  }
  return $values;
}