| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 32 | { |
||
| 33 | 1 | $yumlClient = $this->getContainer()->get('onurb.doctrine_yuml.client'); |
|
| 34 | 1 | $filename = $input->getOption('filename'); |
|
| 35 | |||
| 36 | 1 | $graphUrl = $yumlClient->getGraphUrl($yumlClient->makeDslText()); |
|
| 37 | 1 | $yumlClient->downloadImage($graphUrl, $filename); |
|
| 38 | |||
| 39 | 1 | $output->writeln(sprintf('Downloaded <info>%s</info> to <info>%s</info>', $graphUrl, $filename)); |
|
| 40 | 1 | } |
|
| 41 | } |
||
| 42 |