Differential D17158 Diff 41267 src/applications/maniphest/conduit/ManiphestCreateTaskConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestCreateTaskConduitAPIMethod.php
<?php | <?php | ||||
final class ManiphestCreateTaskConduitAPIMethod | final class ManiphestCreateTaskConduitAPIMethod | ||||
extends ManiphestConduitAPIMethod { | extends ManiphestConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'maniphest.createtask'; | return 'maniphest.createtask'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Create a new Maniphest task.'); | return pht('Create a new Maniphest task.'); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_FROZEN; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht( | |||||
'This method is frozen and will eventually be deprecated. New code '. | |||||
'should use "maniphest.edit" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return $this->getTaskFields($is_new = true); | return $this->getTaskFields($is_new = true); | ||||
} | } | ||||
protected function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
} | } | ||||
Show All 15 Lines |