Sha256: 7af5918b49b52dd8008bae62fa0fec35216520572f99cbe0fb53e893cd45598c

Contents?: true

Size: 501 Bytes

Versions: 7

Compression:

Stored size: 501 Bytes

Contents

<?php

namespace Predis\Protocol\Text;

use Predis\ResponseQueued;
use Predis\Protocol\IResponseHandler;
use Predis\Network\IConnectionComposable;

class ResponseStatusHandler implements IResponseHandler {
    public function handle(IConnectionComposable $connection, $status) {
        switch ($status) {
            case 'OK':
                return true;
            case 'QUEUED':
                return new ResponseQueued();
            default:
                return $status;
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.25.1 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.25.0 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.24.0 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.23.5 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.23.4 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.23.3 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php
appstats-0.23.2 doc/benchmarks/Predis/Protocol/Text/ResponseStatusHandler.php