Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class JsonViolationExporter implements ViolationExporterInterface |
||
14 | { |
||
15 | /** @var SymfonyStyle */ |
||
16 | private $prompt; |
||
17 | |||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param SymfonyStyle $prompt |
||
22 | */ |
||
23 | 1 | public function __construct(SymfonyStyle $prompt) |
|
24 | { |
||
25 | 1 | $this->prompt = $prompt; |
|
26 | 1 | } |
|
27 | |||
28 | /** |
||
29 | * Export the given violations. |
||
30 | * |
||
31 | * @param ViolationIteratorInterface $violations |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | 1 | public function export(ViolationIteratorInterface $violations): void |
|
41 | ) |
||
42 | ); |
||
45 |