PHP Класс Predis\Protocol\Text\ResponseReader

Автор: Daniele Alessandri ([email protected])
Наследование: implements Predis\Protocol\ResponseReaderInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$handlers

Открытые методы

Метод Описание
__construct ( )
getHandler ( string $prefix ) : Predis\Protocol\Text\Handler\ResponseHandlerInterface Returns the response handler associated to a certain type of response.
read ( Predis\Connection\CompositeConnectionInterface $connection )
setHandler ( string $prefix, Predis\Protocol\Text\Handler\ResponseHandlerInterface $handler ) Sets the handler for the specified prefix identifying the response type.

Защищенные методы

Метод Описание
getDefaultHandlers ( ) : array Returns the default handlers for the supported type of responses.
onProtocolError ( Predis\Connection\CompositeConnectionInterface $connection, string $message ) Handles protocol errors generated while reading responses from a connection.

Описание методов

__construct() публичный Метод

public __construct ( )

getDefaultHandlers() защищенный Метод

Returns the default handlers for the supported type of responses.
protected getDefaultHandlers ( ) : array
Результат array

getHandler() публичный Метод

Returns the response handler associated to a certain type of response.
public getHandler ( string $prefix ) : Predis\Protocol\Text\Handler\ResponseHandlerInterface
$prefix string Identifier of the type of response.
Результат Predis\Protocol\Text\Handler\ResponseHandlerInterface

onProtocolError() защищенный Метод

Handles protocol errors generated while reading responses from a connection.
protected onProtocolError ( Predis\Connection\CompositeConnectionInterface $connection, string $message )
$connection Predis\Connection\CompositeConnectionInterface Redis connection that generated the error.
$message string Error message.

read() публичный Метод

public read ( Predis\Connection\CompositeConnectionInterface $connection )
$connection Predis\Connection\CompositeConnectionInterface

setHandler() публичный Метод

Sets the handler for the specified prefix identifying the response type.
public setHandler ( string $prefix, Predis\Protocol\Text\Handler\ResponseHandlerInterface $handler )
$prefix string Identifier of the type of response.
$handler Predis\Protocol\Text\Handler\ResponseHandlerInterface Response handler.

Описание свойств

$handlers защищенное свойство

protected $handlers