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/Predis/Command/CommandDecorator.php

Method Details

Hide inherited methods

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

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

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

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

            
getArgument() public method
public getArgument( mixed $index ): mixed
$index mixed

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

            
getArguments() public method
public getArguments( ): array

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

            
getId() public method
public getId( ): string

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

            
getSlot() public method
public getSlot( ): integer|null

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

            
parseResp3Response() public method
public parseResp3Response( mixed $data ): mixed
$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 serializeCommand( ): string

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

            
setArguments() public method
public setArguments( array $arguments ): void
$arguments array

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

            
setRawArguments() public method
public setRawArguments( array $arguments ): void
$arguments array

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

            
setSlot() public method
public setSlot( mixed $slot ): void
$slot mixed

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