abstract class AbstractObservable implements ObservableInterface
Class AbstractObservable
Methods
__construct()
Initialize the observers storage registry |
||
$this |
attachObserver(ObserverInterface|array|callable $observer)
|
|
$this |
detachObserver(ObserverInterface|array|callable $observer)
|
|
$this |
triggerEvent(string|null $event_name = null)
|
Details
at line 43
public
__construct()
Initialize the observers storage registry
at line 52
public $this
attachObserver(ObserverInterface|array|callable $observer)
at line 62
public $this
detachObserver(ObserverInterface|array|callable $observer)
at line 72
public $this
triggerEvent(string|null $event_name = null)