Method | Description | |
---|---|---|
__construct ( ) | ||
__toString ( ) : string | Returns the version of server profile as its string representation. | |
createCommand ( $commandID, array $arguments = [] ) | ||
defineCommand ( string $commandID, string $class ) | Defines a new command in the server profile. | |
getCommandClass ( string $commandID ) : string | null | Returns the fully-qualified name of a class representing the specified command ID registered in the current server profile. | |
getProcessor ( ) | ||
setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null ) | ||
supportsCommand ( $commandID ) | ||
supportsCommands ( array $commandIDs ) |
Method | Description | |
---|---|---|
getSupportedCommands ( ) : array | Returns a map of all the commands supported by the profile and their actual PHP classes. |
public __toString ( ) : string | ||
return | string |
public createCommand ( $commandID, array $arguments = [] ) | ||
$arguments | array |
public defineCommand ( string $commandID, string $class ) | ||
$commandID | string | Command ID. |
$class | string | Fully-qualified name of a Predis\Command\CommandInterface. |
abstract protected getSupportedCommands ( ) : array | ||
return | array |
public setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null ) | ||
$processor | Predis\Command\Processor\ProcessorInterface |