Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class ProgressDisplay implements CanExecuteAction |
||
16 | { |
||
17 | /** @var OutputInterface */ |
||
18 | private $output; |
||
19 | |||
20 | 36 | public function __construct(OutputInterface $output = null) |
|
21 | { |
||
22 | 36 | $this->output = $output ?? new StreamOutput(fopen('php://memory', 'w', false)); |
|
|
|||
23 | 36 | } |
|
24 | |||
25 | 15 | public function runningParser(): void |
|
26 | { |
||
27 | 15 | $this->output->writeln('[|] Parsing class structure'); |
|
28 | 15 | } |
|
29 | |||
30 | 15 | public function runningProcessor(Processor $processor): void |
|
31 | { |
||
32 | 15 | $this->output->writeln("[|] Running '{$processor->name()}' processor"); |
|
33 | 15 | } |
|
34 | |||
35 | 15 | public function savingResult(): void |
|
38 | 15 | } |
|
39 | } |
||
40 |