Nayjest\Collection\CollectionWriteInterface
CollectionWriteInterface describes methods that changes collection.
Synopsis
interface CollectionWriteInterface
extends EventEmitterInterface
{
- // methods
- public void onItemAdd()
- public void onItemRemove()
- public void onChange()
- public $this add()
- public $this addMany()
- public void replace()
- public $this clear()
- public $this remove()
- public $this set()
Hierarchy
Extends
Methods
public
- add() — Adds item to collection.
- addMany() — Adds multiple to collection.
- clear() — Removes all items from collection.
- onChange()
- onItemAdd()
- onItemRemove()
- remove() — Removes items equals to specified value from collection.
- replace()
- set() — Removes old and sets new collection items.