Table of Contents
Interfaces
- EventEmitterInterface
Properties
-
$listeners
: mixed
-
$onceListeners
: mixed
Methods
-
emit()
: mixed
-
listeners()
: array<string|int, mixed>
-
on()
: mixed
-
once()
: mixed
-
removeAllListeners()
: mixed
-
removeListener()
: mixed
$listeners
protected
mixed
$listeners
= []
$onceListeners
protected
mixed
$onceListeners
= []
emit()
public
emit(mixed $event[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
-
$event
: mixed
-
-
$arguments
: array<string|int, mixed>
= []
-
listeners()
public
listeners([mixed $event = null ]) : array<string|int, mixed>
Parameters
-
$event
: mixed
= null
-
Return values
array<string|int, mixed>
on()
public
on(mixed $event, callable $listener) : mixed
Parameters
-
$event
: mixed
-
-
$listener
: callable
-
once()
public
once(mixed $event, callable $listener) : mixed
Parameters
-
$event
: mixed
-
-
$listener
: callable
-
removeAllListeners()
public
removeAllListeners([mixed $event = null ]) : mixed
Parameters
-
$event
: mixed
= null
-
removeListener()
public
removeListener(mixed $event, callable $listener) : mixed
Parameters
-
$event
: mixed
-
-
$listener
: callable
-