public function bind(Client $client, ConnectionManager $cm)
    {
        $this->client = $client;
        $this->connectionManager = $cm;
        $this->bindMethods([
            'irc.sent' => 'onIrcSent',
            'irc.received' => 'onIrcReceived',
            'irc.tick' => 'onIrcTick',
            'connect.end' => 'onConnectEnd',
            'connect.error' => 'onConnectError',
            'connect.before.each' => 'onConnectBeforeEach',
            'connect.after.each'  => 'onConnectAfterEach'
        ]);
    }
public function bind(Client $client, ConnectionManager $cm)
    {
        $this->client = $client;
        $this->connectionManager = $cm;
        $this->bindMethods([
            'irc.sent' => 'onIrcSent',
            'irc.received' => 'onIrcReceived',
            'irc.tick' => 'onIrcTick',
            'connect.end' => 'onConnectEnd',
            'connect.error' => 'onConnectError',
            'connect.before.each' => 'onConnectBeforeEach',
            'connect.after.each'  => 'onConnectAfterEach'
        ]);
    }
public function bind ( Client $ client , ConnectionManager $ cm ) { $ this -> client = $ client ; $ this -> connectionManager = $ cm ; $ this -> bindMethods ( [ 'irc.sent' => 'onIrcSent' , 'irc.received' => 'onIrcReceived' , 'irc.tick' => 'onIrcTick' , 'connect.end' => 'onConnectEnd' , 'connect.error' => 'onConnectError' , 'connect.before.each' => 'onConnectBeforeEach' , 'connect.after.each' => 'onConnectAfterEach' ] ) ; }
Binds all events of Phergie client to Phoebe connection manager
@param  Client            $client Phergie client
@param  ConnectionManager $cm     Phoebe connection manager
@return void
Binds all events of Phergie client to Phoebe connection manager