Erebot  latest
A modular IRC bot for PHP 7.0+
Erebot\ConnectionFactory Class Reference

Connection factory. More...

+ Inheritance diagram for Erebot\ConnectionFactory:

Public Member Functions

 __construct ($connectionCls, $eventClasses)
 newConnection ($bot, $config)

Protected Attributes

 Class to use to create connections.
 Mapping of event interfaces to their factory.

Detailed Description

Connection factory.

Definition at line 27 of file ConnectionFactory.php.

Constructor & Destructor Documentation

Erebot\ConnectionFactory::__construct (   $connectionCls,

Initializes the factory.

string$connectionClsThe name of the class to use to create new connections.
array$eventClassesAn associative array which maps interface names to the class to use to create events with that interface.

Definition at line 46 of file ConnectionFactory.php.

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