protected function bindMethods(array $binds)
    {
        $self = $this;
        foreach ($binds as $eventName => $methodName) {
            $this->client->on(
                $eventName,
                function () use ($self, $methodName, $eventName) {
                    $self->{$methodName}(func_get_args(), $eventName);
                }
            );
        }
    }
protected function bindMethods(array $binds)
    {
        $self = $this;
        foreach ($binds as $eventName => $methodName) {
            $this->client->on(
                $eventName,
                function () use ($self, $methodName, $eventName) {
                    $self->{$methodName}(func_get_args(), $eventName);
                }
            );
        }
    }
protected function bindMethods ( array $ binds ) { $ self = $ this ; foreach ( $ binds as $ eventName => $ methodName ) { $ this -> client -> on ( $ eventName , function ( ) use ( $ self , $ methodName , $ eventName ) { $ self -> { $ methodName } ( func_get_args ( ) , $ eventName ) ; } ) ; } }
Binds Phergie events to the dispatcher
@param  array  $binds Array of the binded events
@return void
Binds Phergie events to the dispatcher