Explorar o código

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

Daniele Alessandri %!s(int64=14) %!d(string=hai) anos
pai
achega
d81346641f
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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;
+    }
 }