Differential D12380 Diff 29771 src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
<?php | <?php | ||||
final class DifferentialSetDiffPropertyConduitAPIMethod | final class DifferentialSetDiffPropertyConduitAPIMethod | ||||
extends DifferentialConduitAPIMethod { | extends DifferentialConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'differential.setdiffproperty'; | return 'differential.setdiffproperty'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Attach properties to Differential diffs.'; | return 'Attach properties to Differential diffs.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'diff_id' => 'required diff_id', | 'diff_id' => 'required diff_id', | ||||
'name' => 'required string', | 'name' => 'required string', | ||||
'data' => 'required string', | 'data' => 'required string', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'void'; | return 'void'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_NOT_FOUND' => 'Diff was not found.', | 'ERR_NOT_FOUND' => 'Diff was not found.', | ||||
); | ); | ||||
} | } | ||||
private static function updateLintStatus($diff_id) { | private static function updateLintStatus($diff_id) { | ||||
$diff = id(new DifferentialDiff())->load($diff_id); | $diff = id(new DifferentialDiff())->load($diff_id); | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |