EventDispatcher
extends Component
in package
implements
ISingleton, IEventDispatcher
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $application : IApplication
- $listeners : array<string|int, mixed>
- $hashCode : int
- $hashCounter : int
- $instance : EventDispatcher
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- addEventListener() : mixed
- dispatch() : mixed
- extends() : bool
- getInstance() : EventDispatcher
- getListeners() : array<string|int, mixed>
- getReflection() : ReflectionClass
- init() : mixed
- {@inheritdoc}
Properties
$application
protected
IApplication
$application
$listeners
protected
array<string|int, mixed>
$listeners
= []
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$instance
private
static EventDispatcher
$instance
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
addEventListener()
public
addEventListener(IEventListener $listener) : mixed
Parameters
- $listener : IEventListener
Tags
dispatch()
public
dispatch(IEvent $event) : mixed
Parameters
- $event : IEvent
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetInstance()
public
static getInstance() : EventDispatcher
Return values
EventDispatchergetListeners()
public
getListeners() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassinit()
{@inheritdoc}
protected
init() : mixed