Documentation

ListenerAcceptor
in package
implements ListenerAcceptorInterface

Table of Contents

Interfaces

ListenerAcceptorInterface

Properties

$emitter  : EmitterInterface|null
The emitter instance.

Methods

__construct()  : mixed
Constructor
addListener()  : $this
Add a listener for an event.
addOneTimeListener()  : $this
Add a one time listener for an event.

Properties

Methods

addListener()

Add a listener for an event.

public addListener(mixed $event, mixed $listener[, mixed $priority = self::P_NORMAL ]) : $this
Parameters
$event : mixed
$listener : mixed
$priority : mixed = self::P_NORMAL
Tags
inheritdoc
Return values
$this

addOneTimeListener()

Add a one time listener for an event.

public addOneTimeListener(mixed $event, mixed $listener[, mixed $priority = self::P_NORMAL ]) : $this
Parameters
$event : mixed
$listener : mixed
$priority : mixed = self::P_NORMAL
Tags
inheritdoc
Return values
$this

        
On this page

Search results