Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class ResultsRendererFactory |
||
18 | { |
||
19 | private const FORMAT_CSV = 'csv'; |
||
20 | private const FORMAT_JSON = 'json'; |
||
21 | private const FORMAT_MD = 'markdown'; |
||
22 | private const FORMAT_TEXT = 'text'; |
||
23 | |||
24 | /** |
||
25 | * Render the results |
||
26 | * |
||
27 | * @param string $format Format to render. |
||
28 | * @throws InvalidArgumentException If output format invalid. |
||
29 | */ |
||
30 | public function getRenderer(string $format): ResultsRendererInterface |
||
51 |