Class yii\redis\predis\Command\CommandDecorator

Inheritanceyii\redis\predis\Command\CommandDecorator » Predis\Command\Redis\COMMAND
Source Code https://github.com/yiisoft/yii2-redis/blob/master/src/predis/Command/CommandDecorator.php

Method Details

Hide inherited methods

__call() public method

public mixed __call ( mixed $method, mixed $args )
$method mixed
$args mixed

                public function __call($method, $args) { return call_user_func_array([$this->originalCommand, $method], $args); }

            
__construct() public method

public mixed __construct ( \Predis\Command\CommandInterface $command )
$command \Predis\Command\CommandInterface

                public function __construct(CommandInterface $command)
{
    $this->originalCommand = $command;
}

            
getArgument() public method

public mixed getArgument ( mixed $index )
$index mixed

                public function getArgument($index) { return $this->originalCommand->getArgument($index); }

            
getArguments() public method

public array getArguments ( )

                public function getArguments(): array { return $this->originalCommand->getArguments(); }

            
getId() public method

public string getId ( )

                public function getId():string { return $this->originalCommand->getId(); }

            
getSlot() public method

public ?int getSlot ( )

                public function getSlot(): ?int { return $this->originalCommand->getSlot(); }

            
parseResp3Response() public method

public mixed parseResp3Response ( mixed $data )
$data mixed

                public function parseResp3Response($data) { return $this->originalCommand->parseResp3Response($data); }

            
parseResponse() public method

Yii components expect response without changes

public parseResponse ( mixed $data )
$data mixed

                public function parseResponse($data)
{
    return $data;
}

            
serializeCommand() public method

public string serializeCommand ( )

                public function serializeCommand(): string { return $this->originalCommand->serializeCommand(); }

            
setArguments() public method

public void setArguments ( array $arguments )
$arguments array

                public function setArguments(array $arguments): void { $this->originalCommand->setArguments($arguments); }

            
setRawArguments() public method

public void setRawArguments ( array $arguments )
$arguments array

                public function setRawArguments(array $arguments): void { $this->originalCommand->setRawArguments($arguments); }

            
setSlot() public method

public void setSlot ( mixed $slot )
$slot mixed

                public function setSlot($slot): void { $this->originalCommand->setSlot($slot); }