OneTimeListener
in package
implements
ListenerInterface
Table of Contents
Interfaces
Properties
- $listener : ListenerInterface
- The listener instance.
Methods
- __construct() : mixed
- Create a new one time listener instance.
- getWrappedListener() : ListenerInterface
- Get the wrapped listener.
- handle() : void
- Handle an event.
- isListener() : bool
- Check whether the listener is the given parameter.
Properties
$listener
The listener instance.
protected
ListenerInterface
$listener
Methods
__construct()
Create a new one time listener instance.
public
__construct(ListenerInterface $listener) : mixed
Parameters
- $listener : ListenerInterface
getWrappedListener()
Get the wrapped listener.
public
getWrappedListener() : ListenerInterface
Return values
ListenerInterfacehandle()
Handle an event.
public
handle(EventInterface $event) : void
Parameters
- $event : EventInterface
Tags
isListener()
Check whether the listener is the given parameter.
public
isListener(mixed $listener) : bool
Parameters
- $listener : mixed