Documentation

CallbackListener
in package
implements ListenerInterface

Table of Contents

Interfaces

ListenerInterface

Properties

$callback  : callable
The callback.

Methods

__construct()  : mixed
Create a new callback listener instance.
fromCallable()  : static
Named constructor
getCallback()  : callable
Get the callback.
handle()  : void
Handle an event.
isListener()  : bool
Check whether the listener is the given parameter.

Properties

Methods

__construct()

Create a new callback listener instance.

public __construct(callable $callback) : mixed
Parameters
$callback : callable

fromCallable()

Named constructor

public static fromCallable(callable $callable) : static
Parameters
$callable : callable
Return values
static

getCallback()

Get the callback.

public getCallback() : callable
Return values
callable

isListener()

Check whether the listener is the given parameter.

public isListener(mixed $listener) : bool
Parameters
$listener : mixed
Tags
inheritdoc
Return values
bool

        
On this page

Search results