mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Promote __call() method to Predis\ClientInterface.
This commit is contained in:
+1
-6
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user