Hoa central
Public Member Functions | List of all members
Hoa\Core\Event\Listenable Interface Reference
Inheritance diagram for Hoa\Core\Event\Listenable:

Public Member Functions

 on ($listenerId, $callable)
 

Detailed Description

Interface .

Each object which is listenable must implement this interface.

Definition at line 371 of file Event.php.

Member Function Documentation

Hoa\Core\Event\Listenable::on (   $listenerId,
  $callable 
)

Attach a callable to a listenable component.

Parameters
string$listenerIdListener ID.
mixed$callableCallable.
Returns
Exceptions

Implemented in Hoa\Stream\Stream, Hoa\Console\Mouse, Hoa\Websocket\Connection, Hoa\Worker\Backend\Shared, Hoa\Dns\Resolver, Hoa\File\Watcher, and Hoa\Irc\Client.


The documentation for this interface was generated from the following file: