IndexAccess
The interface for mutable, keyed collections to enable setting and removing keys
Guides
Interface Synopsis
interface IndexAccess implements ConstIndexAccess<Tk, Tv> {...}
Public Methods
->removeKey(Tk $k): this
Removes the specified key (and associated value) from the current collection->set(Tk $k, Tv $v): this
Stores a value into the current collection with the specified key, overwriting the previous value associated with the key->setAll(?KeyedTraversable<Tk, Tv> $traversable): this
For every element in the providedTraversable
, stores a value into the current collection associated with each key, overwriting the previous value associated with the key