Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
11 | class ResultsRendererFactory |
||
12 | { |
||
13 | const FORMAT_JSON = 'json'; |
||
14 | const FORMAT_CSV = 'csv'; |
||
15 | const FORMAT_TEXT = 'text'; |
||
16 | |||
17 | /** |
||
18 | * Render the results |
||
19 | * @param string $format Format to render. |
||
20 | * @throws InvalidArgumentException If output format invalid. |
||
21 | * @return ResultsRendererInterface |
||
22 | */ |
||
23 | public function getRenderer(string $format): ResultsRendererInterface |
||
40 |