protected function registerEvents(WhatsApiEventsManager $manager)
    {
        foreach ($this->events as $event) 
        {
            if (is_callable(array($this, $event))) 
            {
                $manager->bind($event, [$this, $event]);
            }
        }
        
        return $this;
    }
protected function registerEvents(WhatsApiEventsManager $manager)
    {
        foreach ($this->events as $event) 
        {
            if (is_callable(array($this, $event))) 
            {
                $manager->bind($event, [$this, $event]);
            }
        }
        
        return $this;
    }
protected function registerEvents ( WhatsApiEventsManager $ manager ) { foreach ( $ this -> events as $ event ) { if ( is_callable ( array ( $ this , $ event ) ) ) { $ manager -> bind ( $ event , [ $ this , $ event ] ) ; } } return $ this ; }
Binds events to the WhatsApiEventsManager
@param  \WhatsApiEventsManager $manager
@return \psbhanu\Whatsapi\Events\Listener
Binds events to the WhatsApiEventsManager