Browse Source

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

Daniele Alessandri 13 năm trước cách đây
mục cha
commit
d81346641f
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      lib/Predis/Pipeline/PipelineContext.php

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

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