Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class ViolationExporterFactory implements ViolationExporterFactoryInterface |
||
15 | { |
||
16 | private const EXPORTERS = [ |
||
17 | 'text' => TextViolationExporter::class, |
||
18 | 'json' => JsonViolationExporter::class |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * Create a violation exporter for the given input and output. |
||
23 | * |
||
24 | * @param InputInterface $input |
||
25 | * @param OutputInterface $output |
||
26 | * |
||
27 | * @return ViolationExporterInterface |
||
28 | */ |
||
29 | 1 | public function create( |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get a list of output formats. |
||
52 | * |
||
53 | * @return string[] |
||
54 | */ |
||
55 | 1 | public function getOutputFormats(): array |
|
60 |