original_string: protected function registerEventListeners()
      {
          foreach ($this->events as $event => $listener) {
              Event::listen($event, $listener);
          }
  
          return $this;
      }
code: protected function registerEventListeners()
      {
          foreach ($this->events as $event => $listener) {
              Event::listen($event, $listener);
          }
  
          return $this;
      }
code_tokens: protected function registerEventListeners ( ) { foreach ( $ this -> events as $ event => $ listener ) { Event :: listen ( $ event , $ listener ) ; } return $ this ; }
docstring: Registers listeners for events.
  
  @return $this
docstring_tokens: Registers listeners for events .