/** * Magic method for all calls. Passes the call through to the client * * @access public * @param string $method * @param array $arguments * @return mixed */ public function __call($method, $arguments = array()) { // Connect if this is the first usage if (!$this->client->isConnected()) { $this->client->connect(); } // Pass the call through to the actual client return call_user_func_array(array($this->client, $method), $arguments); }
/** * Magic method for all calls. Passes the call through to the client with queue key * * @access public * @param string $method * @param array $arguments * @return mixed */ public function __call($method, $arguments = array()) { $this->client->queueCommand($this->key, $method, $arguments); }