PHP Class Phergie_Process_Abstract, phergie

Author: Phergie Development Team ([email protected])
Show file Open project: phergie/phergie Class Usage Examples

Protected Properties

Property Type Description
$connections Phergie_Connection_Handler Current connection handler instance
$driver Phergie_Driver_Abstract Current driver instance
$events Phergie_Event_Handler Current event handler instance
$options array List of arguments for use within the instance
$plugins Phergie_Plugin_Handler Current plugin handler instance
$ui Phergie_Ui_Abstract Current end-user interface instance

Public Methods

Method Description
__construct ( Phergie_Bot $bot, array $options = [] ) : void Gets the required class refences from Phergie_Bot.
handleEvents ( ) : void Obtains and processes incoming events.

Protected Methods

Method Description
processEvents ( Phergie_Connection $connection ) : void Sends resulting outgoing events from earlier processing in handleEvents().

Method Details

__construct() public method

Gets the required class refences from Phergie_Bot.
public __construct ( Phergie_Bot $bot, array $options = [] ) : void
$bot Phergie_Bot Current bot instance in use
$options array Optional processor arguments
return void

handleEvents() abstract public method

Obtains and processes incoming events.
abstract public handleEvents ( ) : void
return void

processEvents() protected method

Sends resulting outgoing events from earlier processing in handleEvents().
protected processEvents ( Phergie_Connection $connection ) : void
$connection Phergie_Connection Active connection
return void

Property Details

$connections protected property

Current connection handler instance
protected Phergie_Connection_Handler $connections
return Phergie_Connection_Handler

$driver protected property

Current driver instance
protected Phergie_Driver_Abstract $driver
return Phergie_Driver_Abstract

$events protected property

Current event handler instance
protected Phergie_Event_Handler $events
return Phergie_Event_Handler

$options protected property

List of arguments for use within the instance
protected array $options
return array

$plugins protected property

Current plugin handler instance
protected Phergie_Plugin_Handler $plugins
return Phergie_Plugin_Handler

$ui protected property

Current end-user interface instance
protected Phergie_Ui_Abstract $ui
return Phergie_Ui_Abstract