Predis\Connection\PhpiredisStreamConnection::getStatusHandler PHP 메소드

getStatusHandler() 보호된 메소드

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