فهرست منبع

Promote __call() method to Predis\ClientInterface.

Daniele Alessandri 10 سال پیش
والد
کامیت
0ee5233f4f
2فایلهای تغییر یافته به همراه11 افزوده شده و 6 حذف شده
  1. 1 6
      src/Client.php
  2. 10 0
      src/ClientInterface.php

+ 1 - 6
src/Client.php

@@ -286,12 +286,7 @@ class Client implements ClientInterface
     }
 
     /**
-     * Creates a Redis command with the specified arguments and sends a request
-     * to the server.
-     *
-     * @param  string $commandID Command ID.
-     * @param  array  $arguments Arguments for the command.
-     * @return mixed
+     * {@inheritdoc}
      */
     public function __call($commandID, $arguments)
     {

+ 10 - 0
src/ClientInterface.php

@@ -63,4 +63,14 @@ interface ClientInterface extends BasicClientInterface
      * @return CommandInterface
      */
     public function createCommand($method, $arguments = array());
+
+    /**
+     * Creates a Redis command with the specified arguments and sends a request
+     * to the server.
+     *
+     * @param  string $commandID Command ID.
+     * @param  array  $arguments Arguments for the command.
+     * @return mixed
+     */
+    public function __call($method, $arguments);
 }