浏览代码

Make it possible to get the client instance used by a pipeline object.

Daniele Alessandri 13 年之前
父节点
当前提交
d81346641f
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      lib/Predis/Pipeline/PipelineContext.php

+ 10 - 0
lib/Predis/Pipeline/PipelineContext.php

@@ -176,4 +176,14 @@ class PipelineContext
 
 
         return $this->replies;
         return $this->replies;
     }
     }
+
+    /**
+     * Returns the underlying client instance used by the pipeline object.
+     *
+     * @return Client
+     */
+    public function getClient()
+    {
+        return $this->client;
+    }
 }
 }