original_string: protected function startListening()
  	{
  		foreach ($this->eventsToListenFor as $event) {
  			if (is_callable([$this, $event])) {
  				$this->connection->eventManager()->bind($event, [$this, $event]);
  			}
  		}
  		return $this;
  	}
code: protected function startListening()
  	{
  		foreach ($this->eventsToListenFor as $event) {
  			if (is_callable([$this, $event])) {
  				$this->connection->eventManager()->bind($event, [$this, $event]);
  			}
  		}
  		return $this;
  	}
code_tokens: protected function startListening ( ) { foreach ( $ this -> eventsToListenFor as $ event ) { if ( is_callable ( [ $ this , $ event ] ) ) { $ this -> connection -> eventManager ( ) -> bind ( $ event , [ $ this , $ event ] ) ; } } return $ this ; }
docstring: Binds the requested events to the event manager.
  
  @return $this
docstring_tokens: Binds the requested events to the event manager .