| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TestConsole extends Command |
||
| 12 | { |
||
| 13 | protected function configure() |
||
| 14 | { |
||
| 15 | $this |
||
| 16 | ->setName('test') |
||
| 17 | ->setDescription('test someone') |
||
| 18 | ->addArgument( |
||
| 19 | 'name', |
||
| 20 | InputArgument::OPTIONAL, |
||
| 21 | 'Who do you want to greet?' |
||
| 22 | ) |
||
| 23 | ->addOption( |
||
| 24 | 'yell', |
||
| 25 | null, |
||
| 26 | InputOption::VALUE_NONE, |
||
| 27 | 'If set, the task will yell in uppercase letters' |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 45 | } |
||
| 46 | } |