Predis\Connection\WebdisConnection::getStatusHandler PHP Méthode

getStatusHandler() protected méthode

Returns the handler used by the protocol reader for inline responses.
protected getStatusHandler ( ) : Closure
Résultat Closure
    protected function getStatusHandler()
    {
        static $statusHandler;
        if (!$statusHandler) {
            $statusHandler = function ($payload) {
                return StatusResponse::get($payload);
            };
        }
        return $statusHandler;
    }