Predis\Command\CommandInterface::getArgument PHP Method

getArgument() public method

Gets the argument of the command at the specified index.
public getArgument ( integer $index ) : mixed | null
$index integer Index of the desired argument.
return mixed | null
    public function getArgument($index);

Usage Example

コード例 #1
0
 private function storeDebug(CommandInterface $command, $direction)
 {
     $firtsArg = $command->getArgument(0);
     $timestamp = round(microtime(true) - $this->tstart, 4);
     $debug = $command->getId();
     $debug .= isset($firtsArg) ? " {$firtsArg} " : ' ';
     $debug .= "{$direction} {$this}";
     $debug .= " [{$timestamp}s]";
     $this->debugBuffer[] = $debug;
 }
All Usage Examples Of Predis\Command\CommandInterface::getArgument