Events
in package
Class Events.
Table of Contents
- $listeners : array<string|int, mixed>
- isListening() : bool
- listen() : void
- remove() : void
- trigger() : void
Properties
$listeners
protected
static array<string|int, mixed>
$listeners
= []
Methods
isListening()
public
static isListening(string $name) : bool
Parameters
- $name : string
Return values
bool —listen()
public
static listen(string $name, callable $callback) : void
Parameters
- $name : string
- $callback : callable
Return values
void —remove()
public
static remove(string $name) : void
Parameters
- $name : string
Return values
void —trigger()
public
static trigger(string $name, mixed ...$arguments) : void
Parameters
- $name : string
- $arguments : mixed