Predis\Command\Factory::createCommand PHP Метод

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

public createCommand ( $commandID, array $arguments = [] )
$arguments array
    public function createCommand($commandID, array $arguments = array())
    {
        if (!($commandClass = $this->getCommandClass($commandID))) {
            $commandID = strtoupper($commandID);
            throw new ClientException("Command '{$commandID}' is not a registered Redis command.");
        }
        $command = new $commandClass();
        $command->setArguments($arguments);
        if (isset($this->processor)) {
            $this->processor->process($command);
        }
        return $command;
    }