trait HasListeners

Methods

void
setListener(Listener $listener)

Setup new listener

array
getListeners()

Get listeners linked to object;

bool
hasListeners()

Check if listeners are empty or not

Details

at line 17
void setListener(Listener $listener)

Setup new listener

Parameters

Listener $listener

Return Value

void

at line 27
array getListeners()

Get listeners linked to object;

Return Value

array

at line 37
bool hasListeners()

Check if listeners are empty or not

Return Value

bool