| 1 | <?php declare(strict_types = 1); |
||
| 11 | class ResultsRendererFactory |
||
| 12 | { |
||
| 13 | const FORMAT_JSON = 'json'; |
||
| 14 | const FORMAT_TEXT = 'text'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Render the results |
||
| 18 | * @param string $format Format to render. |
||
| 19 | * @param OutputInterface $output Output Interface. |
||
| 20 | * @param ResultCollection $results Result Collection. |
||
| 21 | * @throws InvalidArgumentException If output format invalid. |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function renderResults(string $format, OutputInterface $output, ResultCollection $results) |
||
| 38 | } |
||
| 39 |