protected function wrapCallback(callable $callback)
    {
        return function ($response, $connection, $command) use ($callback) {
            if ($command && !$response instanceof ResponseInterface) {
                $response = $command->parseResponse($response);
            }

            \call_user_func($callback, $response, $this, $command);
        };
    }
protected function wrapCallback(callable $callback)
    {
        return function ($response, $connection, $command) use ($callback) {
            if ($command && !$response instanceof ResponseInterface) {
                $response = $command->parseResponse($response);
            }

            \call_user_func($callback, $response, $this, $command);
        };
    }
protected function wrapCallback ( callable $ callback ) { return function ( $ response , $ connection , $ command ) use ( $ callback ) { if ( $ command && ! $ response instanceof ResponseInterface ) { $ response = $ command -> parseResponse ( $ response ) ; } \ call_user_func ( $ callback , $ response , $ this , $ command ) ; } ; }
Wraps a command callback used to parse the raw response by adding more
arguments that will be passed back to user code.

@param callable $callback Response callback.
Wraps a command callback used to parse the raw response by adding more arguments that will be passed back to user code .