PHP Class Phastlight\EventEmitter

Inheritance: extends Object
Show file Open project: phastlight/phastlight

Public Methods

Method Description
__construct ( )
addListener ( $event, $listener )
emit ( $event )
getListeners ( $event )
on ( $event, $listener ) add a listener to the end of the listeners array for the specified event
removeAllListeners ( $event )
removeListener ( $event, $listener )

Method Details

__construct() public method

public __construct ( )

addListener() public method

public addListener ( $event, $listener )

emit() public method

public emit ( $event )

getListeners() public method

public getListeners ( $event )

on() public method

add a listener to the end of the listeners array for the specified event
public on ( $event, $listener )

removeAllListeners() public method

public removeAllListeners ( $event )

removeListener() public method

public removeListener ( $event, $listener )