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
파일 보기 프로젝트 열기: nrk/predis

보호된 프로퍼티들

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