CallableListener
- Full name:
\Qubus\EventDispatcher\Legacy\CallableListener
- This class implements:
\Qubus\EventDispatcher\Legacy\EventListener
Properties
callable
The callable callback.
listeners
Array of callable-listeners.
- This property is static.
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$callable | callable |
getCallable
Gets callback.
handle
Handles an event.
Parameters:
Parameter | Type | Description |
---|---|---|
$event | \Qubus\EventDispatcher\Legacy\Event |
createFromCallable
Creates a callable-listener.
public static createFromCallable(callable $callable): \Qubus\EventDispatcher\Legacy\CallableListener
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$callable | callable |
findByCallable
Finds the listener from the collection by its callable.
public static findByCallable(callable $callable): \Qubus\EventDispatcher\Legacy\CallableListener|false
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$callable | callable |
Throws:
clearListeners
Removes all registered callable-listeners.
- This method is static.
Automatically generated on 2025-10-13