Predis\Collection\Iterator\CursorBasedIterator::requiredCommand PHP Метод

requiredCommand() защищенный Метод

Ensures that the client supports the specified Redis command required to fetch elements from the server to perform the iteration.
protected requiredCommand ( Predis\ClientInterface $client, string $commandID )
$client Predis\ClientInterface Client connected to Redis.
$commandID string Command ID.
    protected function requiredCommand(ClientInterface $client, $commandID)
    {
        if (!$client->getCommandFactory()->supportsCommand($commandID)) {
            throw new NotSupportedException("'{$commandID}' is not supported by the current command factory.");
        }
    }