Listenable
extends
Source
in
Interface \Hoa\Event\Listenable.
Each object which is listenable must implement this interface.
Tags
Table of Contents
Methods
- on() : Listenable
- Attach a callable to a listenable component.
Methods
on()
Attach a callable to a listenable component.
public
on(string $listenerId, mixed $callable) : Listenable
Parameters
- $listenerId : string
-
Listener ID.
- $callable : mixed
-
Callable.