Library
Class

Library\Event\EventObserverStorage

class EventObserverStorage extends ArrayObject

Class EventObserverStorage

This will handle a collection of event observers all wrapped in an EventObserverProxy object and indexed with a special hash allowing to retrieve a defined observer.

Methods

$this add(ObserverInterface|array|callable $observer)

$this remove(ObserverInterface|array|callable $observer)

Details

at line 42
public $this add(ObserverInterface|array|callable $observer)

Parameters

ObserverInterface|array|callable $observer | array($object , $method) | $callback

Return Value

$this

at line 56
public $this remove(ObserverInterface|array|callable $observer)

Parameters

ObserverInterface|array|callable $observer | array($object , $method) | $callback

Return Value

$this