PHP Class Predis\Command\Processor\ProcessorChain

Author: Daniele Alessandri ([email protected])
Inheritance: implements Predis\Command\Processor\CommandProcessorChainInterface, implements ArrayAccess
Datei anzeigen Open project: nrk/predis Class Usage Examples

Public Methods

Method Description
__construct ( array $processors = [] )
add ( Predis\Command\Processor\ProcessorInterface $processor )
count ( ) : integer Returns the number of command processors in the chain.
getIterator ( ) : ArrayIterator Returns an iterator over the list of command processor in the chain.
getProcessors ( )
offsetExists ( $index )
offsetGet ( $index )
offsetSet ( $index, $processor )
offsetUnset ( $index )
process ( Predis\Command\CommandInterface $command )
remove ( Predis\Command\Processor\ProcessorInterface $processor )

Method Details

__construct() public method

public __construct ( array $processors = [] )
$processors array List of instances of ProcessorInterface.

add() public method

public add ( Predis\Command\Processor\ProcessorInterface $processor )
$processor Predis\Command\Processor\ProcessorInterface

count() public method

Returns the number of command processors in the chain.
public count ( ) : integer
return integer

getIterator() public method

Returns an iterator over the list of command processor in the chain.

getProcessors() public method

public getProcessors ( )

offsetExists() public method

public offsetExists ( $index )

offsetGet() public method

public offsetGet ( $index )

offsetSet() public method

public offsetSet ( $index, $processor )

offsetUnset() public method

public offsetUnset ( $index )

process() public method

public process ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

remove() public method

public remove ( Predis\Command\Processor\ProcessorInterface $processor )
$processor Predis\Command\Processor\ProcessorInterface