1 | <?php |
||
23 | class ConflictsCommand extends AbstractCommand implements IAggregatorAwareCommand, IConfigAwareCommand |
||
24 | { |
||
25 | |||
26 | const SETTING_CONFLICTS_RECORDED_CONFLICTS = 'conflicts.recorded-conflicts'; |
||
27 | |||
28 | const MODE_SHOW = 'show'; |
||
29 | |||
30 | const MODE_ADD = 'add'; |
||
31 | |||
32 | const MODE_REPLACE = 'replace'; |
||
33 | |||
34 | const MODE_ERASE = 'erase'; |
||
35 | |||
36 | /** |
||
37 | * Working copy conflict tracker. |
||
38 | * |
||
39 | * @var WorkingCopyConflictTracker |
||
40 | */ |
||
41 | private $_workingCopyConflictTracker; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 11 | protected function configure() |
|
72 | |||
73 | /** |
||
74 | * Prepare dependencies. |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | protected function prepareDependencies() |
||
86 | |||
87 | /** |
||
88 | * Return possible values for the named option |
||
89 | * |
||
90 | * @param string $optionName Option name. |
||
91 | * @param CompletionContext $context Completion context. |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | public function completeOptionValues($optionName, CompletionContext $context) |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | * |
||
109 | * @throws \RuntimeException When invalid mode is specified. |
||
110 | */ |
||
111 | protected function execute(InputInterface $input, OutputInterface $output) |
||
157 | |||
158 | /** |
||
159 | * Returns allowed modes. |
||
160 | * |
||
161 | * @return array |
||
162 | */ |
||
163 | 11 | protected function getModes() |
|
167 | |||
168 | /** |
||
169 | * Returns list of config settings. |
||
170 | * |
||
171 | * @return AbstractConfigSetting[] |
||
172 | */ |
||
173 | public function getConfigSettings() |
||
179 | |||
180 | /** |
||
181 | * Returns option names, that makes sense to use in aggregation mode. |
||
182 | * |
||
183 | * @return array |
||
184 | */ |
||
185 | public function getAggregatedOptions() |
||
189 | |||
190 | } |
||
191 |