You are here

class ObjectsProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php \Symfony\Component\Console\Tests\Descriptor\ObjectsProvider

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

Hierarchy

Expanded class hierarchy of ObjectsProvider

File

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

Namespace

Symfony\Component\Console\Tests\Descriptor
View source
class ObjectsProvider {
  public static function getInputArguments() {
    return array(
      'input_argument_1' => new InputArgument('argument_name', InputArgument::REQUIRED),
      'input_argument_2' => new InputArgument('argument_name', InputArgument::IS_ARRAY, 'argument description'),
      'input_argument_3' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', 'default_value'),
      'input_argument_4' => new InputArgument('argument_name', InputArgument::REQUIRED, "multiline\nargument description"),
    );
  }
  public static function getInputOptions() {
    return array(
      'input_option_1' => new InputOption('option_name', 'o', InputOption::VALUE_NONE),
      'input_option_2' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', 'default_value'),
      'input_option_3' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description'),
      'input_option_4' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'option description', array()),
      'input_option_5' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, "multiline\noption description"),
      'input_option_6' => new InputOption('option_name', array(
        'o',
        'O',
      ), InputOption::VALUE_REQUIRED, 'option with multiple shortcuts'),
    );
  }
  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),
      )),
    );
  }
  public static function getCommands() {
    return array(
      'command_1' => new DescriptorCommand1(),
      'command_2' => new DescriptorCommand2(),
    );
  }
  public static function getApplications() {
    return array(
      'application_1' => new DescriptorApplication1(),
      'application_2' => new DescriptorApplication2(),
    );
  }

}

Members