| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 40 | { |
||
| 41 | $newsClient = $this->getNewsClient($input); |
||
| 42 | |||
| 43 | $contentId = $input->getArgument('id'); |
||
| 44 | $contentType = $input->getArgument('contentType'); |
||
| 45 | |||
| 46 | $result = $newsClient->searchByInstance($contentId, $contentType); |
||
| 47 | $formatter = Formatter::make($result, Formatter::ARR); |
||
| 48 | |||
| 49 | $output->writeln($formatter->toYaml()); |
||
| 50 | |||
| 51 | return 0; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |