浏览代码

Updated documentation to include ::getReturnCode

orolin 11 年之前
父节点
当前提交
ad40cd79fe
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Resources/docs/client.rst

+ 3 - 0
Resources/docs/client.rst

@@ -38,6 +38,8 @@ Request a job
     $result = $gearman
         ->doJob('MmoreramerinoTestBundleServicesMyAcmeWorker~doSomething', json_encode(array('value1')));
 
+    $returnCode = $gearman->getReturnCode();
+
 - doJob: Call the job and wait for the result
 - doNormalJob: Call the job and wait for the result ( Only newest gearman versions )
 - doHighJob: Call the job and wait for the result on High Preference
@@ -50,6 +52,7 @@ Request a job
     - It receives a job handle for the submitted job
 - callJob: Call the job with default method.
     - Defined in settings, work annotations or the job annotations
+- getReturnCode: Retrieve the return code from the last requested job.
 
 Tasks
 ~~~~~