EventListener
extends Component
in package
implements
IEventListener
AbstractYes
Tags
Table of Contents
Interfaces
Properties
- $enabled : bool
- $name : string
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- getName() : string
- getReflection() : ReflectionClass
- handle() : mixed
- Handles and event by calling a member method that matches the event's name
- isEnabled() : bool
- Determines whether or not this event listener is enabled
- init() : mixed
Properties
$enabled
protected
bool
$enabled
= true
$name
protected
string
$name
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
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
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetName()
public
getName() : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClasshandle()
Handles and event by calling a member method that matches the event's name
public
handle(IEvent $event) : mixed
Parameters
- $event : IEvent
Tags
isEnabled()
Determines whether or not this event listener is enabled
public
isEnabled() : bool
Tags
Return values
boolinit()
protected
init() : mixed