1 | <?php declare(strict_types = 1); |
||
17 | class ChurnCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * The file manager. |
||
21 | * @var FileManager |
||
22 | */ |
||
23 | private $fileManager; |
||
24 | |||
25 | /** |
||
26 | * Th results parser. |
||
27 | * @var ResultsParser |
||
28 | */ |
||
29 | private $resultsParser; |
||
30 | |||
31 | /** |
||
32 | * Collection of files to run the processes on. |
||
33 | * @var Collection |
||
34 | */ |
||
35 | private $files; |
||
36 | |||
37 | /** |
||
38 | * Collection of processes currently running. |
||
39 | * @var Collection |
||
40 | */ |
||
41 | private $runningProcesses; |
||
42 | |||
43 | /** |
||
44 | * Array of completed processes. |
||
45 | * @var array |
||
46 | */ |
||
47 | private $completedProcessesArray; |
||
48 | |||
49 | /** |
||
50 | * Class constructor. |
||
51 | */ |
||
52 | public function __construct() |
||
58 | |||
59 | /** |
||
60 | * Configure the command |
||
61 | * @return void |
||
62 | */ |
||
63 | protected function configure() |
||
70 | |||
71 | /** |
||
72 | * Exectute the command |
||
73 | * @param InputInterface $input Input. |
||
74 | * @param OutputInterface $output Output. |
||
75 | * @return void |
||
76 | */ |
||
77 | protected function execute(InputInterface $input, OutputInterface $output) |
||
92 | |||
93 | /** |
||
94 | * Gets the output from processes and stores them in the completedProcessArray member. |
||
95 | * @return void |
||
96 | */ |
||
97 | private function getProcessResults() |
||
117 | |||
118 | /** |
||
119 | * Displays the results in a table. |
||
120 | * @param OutputInterface $output Output. |
||
121 | * @param Churn\Results\ResultCollection $results Results Collection. |
||
122 | * @return void |
||
123 | */ |
||
124 | protected function displayResults(OutputInterface $output, ResultCollection $results) |
||
141 | } |
||
142 |