Predis\Cluster\SlotMap::offsetGet PHP Method

offsetGet() public method

Returns the node assigned to the specified slot.
public offsetGet ( integer $slot ) : string
$slot integer Slot index.
return string
    public function offsetGet($slot)
    {
        if (isset($this->slots[$slot])) {
            return $this->slots[$slot];
        }
    }