| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 26 | { |
||
| 27 | $io = new SymfonyStyle($input, $output); |
||
| 28 | $arg1 = $input->getArgument('arg1'); |
||
| 29 | |||
| 30 | if ($arg1) { |
||
| 31 | $io->note(sprintf('You passed an argument: %s', $arg1)); |
||
|
|
|||
| 32 | } |
||
| 33 | |||
| 34 | if ($input->getOption('option1')) { |
||
| 35 | // ... |
||
| 36 | } |
||
| 37 | |||
| 38 | $io->success('You have a new command! Now make it your own! Pass --help to see your options.'); |
||
| 39 | |||
| 40 | return 0; |
||
| 41 | } |
||
| 43 |