public static function ObjectsProvider::getInputOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php \Symfony\Component\Console\Tests\Descriptor\ObjectsProvider::getInputOptions()
1 call to ObjectsProvider::getInputOptions()
- AbstractDescriptorTest::getDescribeInputOptionTestData in vendor/
symfony/ console/ Tests/ Descriptor/ AbstractDescriptorTest.php
File
- vendor/
symfony/ console/ Tests/ Descriptor/ ObjectsProvider.php, line 37
Class
- ObjectsProvider
- @author Jean-François Simon <contact@jfsimon.fr>
Namespace
Symfony\Component\Console\Tests\DescriptorCode
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'),
);
}