You are here

public function InputDefinition::__construct 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::__construct()

Constructor.

Parameters

array $definition An array of InputArgument and InputOption instance:

File

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

Class

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

Namespace

Symfony\Component\Console\Input

Code

public function __construct(array $definition = array()) {
  $this
    ->setDefinition($definition);
}