1 | <?php |
||
16 | class All implements RunnerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Config |
||
20 | */ |
||
21 | protected $config; |
||
22 | |||
23 | /** |
||
24 | * @var Api |
||
25 | */ |
||
26 | protected $api; |
||
27 | |||
28 | /** |
||
29 | * @var AnalyzerInterface |
||
30 | */ |
||
31 | protected $analyzer; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $stashed; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $branch; |
||
42 | |||
43 | /** |
||
44 | * @param Config $config |
||
45 | * @param Api $api |
||
46 | * @param AnalyzerInterface $analyzer |
||
47 | */ |
||
48 | public function __construct(Config $config, Api $api, AnalyzerInterface $analyzer) |
||
66 | |||
67 | /** |
||
68 | * Restores the original environment after analyzing. |
||
69 | */ |
||
70 | public function __destruct() |
||
77 | |||
78 | /** |
||
79 | * @param string $branch |
||
80 | */ |
||
81 | public function setBranch($branch) |
||
85 | |||
86 | /** |
||
87 | * @return string[] |
||
88 | */ |
||
89 | protected function getCommits() |
||
95 | |||
96 | /** |
||
97 | * @throws Exception |
||
98 | */ |
||
99 | public function execute() |
||
125 | |||
126 | /** |
||
127 | * Returns array of commit hashes that have already been imported. |
||
128 | * |
||
129 | * @return string[] |
||
130 | * |
||
131 | * @throws Exception |
||
132 | */ |
||
133 | protected function getImportedCommits() |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | protected function getDefaultBranch() |
||
157 | |||
158 | /** |
||
159 | * @return array |
||
160 | */ |
||
161 | protected function getEnvironment() |
||
178 | } |
||
179 |