Method |
Description |
|
count ( ) : integer |
Returns the current number of assigned slots. |
|
getIterator ( ) : ArrayIterator |
Returns an iterator over the slot map. |
|
getNodes ( ) : array |
Returns the list of unique nodes in the slot map. |
|
getSlots ( integer $first, integer $last ) : array |
Returns the specified slot range. |
|
isEmpty ( ) : boolean |
Checks if the slot map is empty. |
|
isValid ( $slot ) : boolean |
Checks if the given slot is valid. |
|
isValidRange ( integer $first, integer $last ) : boolean |
Checks if the given slot range is valid. |
|
offsetExists ( integer $slot ) : boolean |
Checks if the specified slot is assigned. |
|
offsetGet ( integer $slot ) : string |
Returns the node assigned to the specified slot. |
|
offsetSet ( integer $slot, NodeConnectionInterface | string $connection ) : string |
Assigns the specified slot to a node. |
|
offsetUnset ( integer $slot ) : string |
Returns the node assigned to the specified slot. |
|
reset ( ) |
Resets the slot map. |
|
setSlots ( integer $first, integer $last, NodeConnectionInterface | string $connection ) |
Assigns the specified slot range to a node. |
|
toArray ( ) : array |
Returns the current slot map as a dictionary of $slot => $node. |
|