Skip to content

CallableListener

Properties

callable

The callable callback.

protected callable $callable

listeners

Array of callable-listeners.

protected static array $listeners
  • This property is static.

Methods

__construct

public __construct(callable $callable): mixed

Parameters:

Parameter Type Description
$callable callable

getCallable

Gets callback.

public getCallable(): callable

handle

Handles an event.

public handle(\Qubus\EventDispatcher\Legacy\Event $event): void

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.

public static clearListeners(): void
  • This method is static.


Automatically generated on 2025-10-13