_Listenable
in package
implements
Listenable
uses
Listens
Table of Contents
Interfaces
- Listenable
- Interface \Hoa\Event\Listenable.
Properties
- $_listener : Listener
- Listener instance.
Methods
- _getListener() : mixed
- _setListener() : mixed
- doSomethingThatFires() : mixed
- on() : Listenable
- Attach a callable to a listenable component.
- getListener() : Listener
- Get listener.
- setListener() : Listener
- Set listener.
Properties
$_listener
Listener instance.
protected
Listener
$_listener
= null
Methods
_getListener()
public
_getListener() : mixed
_setListener()
public
_setListener(Listener $listener) : mixed
Parameters
- $listener : Listener
doSomethingThatFires()
public
doSomethingThatFires() : mixed
on()
Attach a callable to a listenable component.
public
on(string $listenerId, mixed $callable) : Listenable
Parameters
- $listenerId : string
-
Listener ID.
- $callable : mixed
-
Callable.
Return values
ListenablegetListener()
Get listener.
protected
getListener() : Listener
Return values
ListenersetListener()
Set listener.
protected
setListener(Listener $listener) : Listener
Parameters
- $listener : Listener
-
Listener.