Differential D12380 Diff 29771 src/applications/differential/conduit/DifferentialFinishPostponedLintersConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialFinishPostponedLintersConduitAPIMethod.php
<?php | <?php | ||||
final class DifferentialFinishPostponedLintersConduitAPIMethod | final class DifferentialFinishPostponedLintersConduitAPIMethod | ||||
extends DifferentialConduitAPIMethod { | extends DifferentialConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'differential.finishpostponedlinters'; | return 'differential.finishpostponedlinters'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Update diff with new lint messages and mark postponed '. | return 'Update diff with new lint messages and mark postponed '. | ||||
'linters as finished.'; | 'linters as finished.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'diffID' => 'required diffID', | 'diffID' => 'required diffID', | ||||
'linters' => 'required dict', | 'linters' => 'required dict', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'void'; | return 'void'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR-BAD-DIFF' => 'Bad diff ID.', | 'ERR-BAD-DIFF' => 'Bad diff ID.', | ||||
'ERR-BAD-LINTER' => 'No postponed linter by the given name', | 'ERR-BAD-LINTER' => 'No postponed linter by the given name', | ||||
'ERR-NO-LINT' => 'No postponed lint field available in diff', | 'ERR-NO-LINT' => 'No postponed lint field available in diff', | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |