Differential D12380 Diff 29771 src/applications/arcanist/conduit/ArcanistProjectInfoConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/arcanist/conduit/ArcanistProjectInfoConduitAPIMethod.php
<?php | <?php | ||||
final class ArcanistProjectInfoConduitAPIMethod | final class ArcanistProjectInfoConduitAPIMethod | ||||
extends ArcanistConduitAPIMethod { | extends ArcanistConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'arcanist.projectinfo'; | return 'arcanist.projectinfo'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Get information about Arcanist projects.'; | return 'Get information about Arcanist projects.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'name' => 'required string', | 'name' => 'required string', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR-BAD-ARCANIST-PROJECT' => 'No such project exists.', | 'ERR-BAD-ARCANIST-PROJECT' => 'No such project exists.', | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$name = $request->getValue('name'); | $name = $request->getValue('name'); | ||||
Show All 38 Lines |