Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Interfaces\ConnectionFactory Interface Reference

Interface for a connection factory. More...

+ Inheritance diagram for Erebot\Interfaces\ConnectionFactory:

Public Member Functions

 newConnection ($bot, $config)
 

Detailed Description

Interface for a connection factory.

Definition at line 27 of file ConnectionFactory.php.

Member Function Documentation

Erebot\Interfaces\ConnectionFactory::newConnection (   $bot,
  $config 
)

Create a new connection.

Parameters
Erebot::Interfaces::Core$botAn instance of the bot.
Erebot::Interfaces::Config::Server$configAn instance of a server configuration.
Return values
Erebot::Interfaces::ConnectionThe new connection.

Implemented in Erebot\ConnectionFactory.


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