PHP Класс Predis\Command\Factory

This class provides all of the common functionalities needed for the creation of new instances of Redis commands.
Автор: Daniele Alessandri ([email protected])
Наследование: implements Predis\Command\FactoryInterface
Показать файл Открыть проект

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

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

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

Метод Описание
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 )

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

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

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

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

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() публичный Метод

Returns the FQN of a class that represents the specified command ID.
public getCommandClass ( string $commandID ) : string | null
$commandID string Command ID.
Результат string | null

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

public getProcessor ( )

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

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

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

public supportsCommand ( $commandID )

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

public supportsCommands ( array $commandIDs )
$commandIDs array

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

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

protected $commands

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

protected $processor