Predis\Connection\WebdisConnection::getCommandId PHP Méthode

getCommandId() protected méthode

Checks if the specified command is supported by this connection class.
protected getCommandId ( Predis\Command\CommandInterface $command ) : string
$command Predis\Command\CommandInterface Command instance.
Résultat string
    protected function getCommandId(CommandInterface $command)
    {
        switch ($commandID = $command->getId()) {
            case 'AUTH':
            case 'SELECT':
            case 'MULTI':
            case 'EXEC':
            case 'WATCH':
            case 'UNWATCH':
            case 'DISCARD':
            case 'MONITOR':
                throw new NotSupportedException("Command '{$commandID}' is not allowed by Webdis.");
            default:
                return $commandID;
        }
    }