PHP 클래스 Predis\Protocol\Text\ResponseReader

저자: Daniele Alessandri ([email protected])
상속: implements Predis\Protocol\ResponseReaderInterface
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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