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

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

public getSlot ( )
    public function getSlot()
    {
        if (isset($this->slot)) {
            return $this->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());
 }