PHP Class Predis\Command\Factory

This class provides all of the common functionalities needed for the creation of new instances of Redis commands.
Author: Daniele Alessandri ([email protected])
Inheritance: implements Predis\Command\FactoryInterface
Afficher le fichier Open project: nrk/predis

Protected Properties

Свойство Type Description
$commands
$processor

Méthodes publiques

Méthode Description
createCommand ( $commandID, array $arguments = [] )
defineCommand ( string $commandID, string $class ) Defines a new command in the factory.
getCommandClass ( string $commandID ) : string | null Returns the FQN of a class that represents the specified command ID.
getProcessor ( )
setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null )
supportsCommand ( $commandID )
supportsCommands ( array $commandIDs )

Method Details

createCommand() public méthode

public createCommand ( $commandID, array $arguments = [] )
$arguments array

defineCommand() public méthode

Defines a new command in the factory.
public defineCommand ( string $commandID, string $class )
$commandID string Command ID.
$class string Fully-qualified name of a Predis\Command\CommandInterface.

getCommandClass() public méthode

Returns the FQN of a class that represents the specified command ID.
public getCommandClass ( string $commandID ) : string | null
$commandID string Command ID.
Résultat string | null

getProcessor() public méthode

public getProcessor ( )

setProcessor() public méthode

public setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null )
$processor Predis\Command\Processor\ProcessorInterface

supportsCommand() public méthode

public supportsCommand ( $commandID )

supportsCommands() public méthode

public supportsCommands ( array $commandIDs )
$commandIDs array

Property Details

$commands protected_oe property

protected $commands

$processor protected_oe property

protected $processor