class AbstractObservable implements ObservableInterface

Class AbstractObservable

Methods

__construct()

Initialize the observers storage registry

void
attachObserver( ObserverInterface|array|callable $observer)

No description

void
detachObserver( ObserverInterface|array|callable $observer)

No description

void
triggerEvent( string|null $event_name = null)

No description

Details

at line 44
__construct()

Initialize the observers storage registry

at line 53
void attachObserver( ObserverInterface|array|callable $observer)

Parameters

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

Return Value

void

at line 63
void detachObserver( ObserverInterface|array|callable $observer)

Parameters

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

Return Value

void

at line 73
void triggerEvent( string|null $event_name = null)

Parameters

string|null $event_name

Return Value

void