Просмотр исходного кода

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

Daniele Alessandri 13 лет назад
Родитель
Сommit
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;
     }
+
+    /**
+     * Returns the underlying client instance used by the pipeline object.
+     *
+     * @return Client
+     */
+    public function getClient()
+    {
+        return $this->client;
+    }
 }