Predis\Command\RawCommand::setSlot PHP Метод

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

public setSlot ( $slot )
    public function setSlot($slot)
    {
        $this->slot = $slot;
    }

Usage Example

Пример #1
0
 /**
  * @group disconnected
  */
 public function testSetAndGetHash()
 {
     $slot = 1024;
     $arguments = array('SET', 'key', 'value');
     $command = new RawCommand($arguments);
     $this->assertNull($command->getSlot());
     $command->setSlot($slot);
     $this->assertSame($slot, $command->getSlot());
     $command->setArguments(array('hoge', 'piyo'));
     $this->assertNull($command->getSlot());
 }