Documentation

EventEmitter
in package
implements EventEmitterInterface uses EventEmitterTrait

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

Properties

Methods

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

        
On this page

Search results