You are here

public static function ObjectsProvider::getInputDefinitions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php \Symfony\Component\Console\Tests\Descriptor\ObjectsProvider::getInputDefinitions()
1 call to ObjectsProvider::getInputDefinitions()
AbstractDescriptorTest::getDescribeInputDefinitionTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php

File

vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php, line 49

Class

ObjectsProvider
@author Jean-François Simon <contact@jfsimon.fr>

Namespace

Symfony\Component\Console\Tests\Descriptor

Code

public static function getInputDefinitions() {
  return array(
    'input_definition_1' => new InputDefinition(),
    'input_definition_2' => new InputDefinition(array(
      new InputArgument('argument_name', InputArgument::REQUIRED),
    )),
    'input_definition_3' => new InputDefinition(array(
      new InputOption('option_name', 'o', InputOption::VALUE_NONE),
    )),
    'input_definition_4' => new InputDefinition(array(
      new InputArgument('argument_name', InputArgument::REQUIRED),
      new InputOption('option_name', 'o', InputOption::VALUE_NONE),
    )),
  );
}