| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 34 | $id = $input->getArgument('id'); |
||
| 35 | |||
| 36 | $job = $this->jobList->getById($id); |
||
| 37 | if ($job === null) { |
||
| 38 | $output->writeln("Job with id <$id> is not known."); |
||
| 39 | return; |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->jobList->removeById($id); |
||
| 43 | $output->writeln('Job has been deleted.'); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |