Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class ProgressDisplay implements ProcessorProgressDisplay |
||
21 | { |
||
22 | /** @var OutputInterface */ |
||
23 | private $output; |
||
24 | |||
25 | 45 | public function __construct(OutputInterface $output = null) |
|
28 | 45 | } |
|
29 | |||
30 | 21 | public function start(): void |
|
31 | { |
||
32 | 21 | $this->display('Running... (This may take some time)'); |
|
33 | 21 | } |
|
34 | |||
35 | 21 | public function runningParser(): void |
|
36 | { |
||
37 | 21 | $this->display('Parsing codebase structure'); |
|
38 | 21 | } |
|
39 | |||
40 | 21 | public function runningProcessor(Processor $processor): void |
|
41 | { |
||
42 | 21 | $this->display("Running '{$processor->name()}' processor"); |
|
43 | 21 | } |
|
44 | |||
45 | 21 | public function savingResult(): void |
|
48 | 21 | } |
|
49 | |||
50 | 21 | private function display(string $message) |
|
53 | 21 | } |
|
54 | } |
||
55 |