original_string: public function registerListeners(array $listeners)
      {
          foreach ($listeners as $event => $listener) {
              $this->events[$event][] = $listener;
          }
      }
code: public function registerListeners(array $listeners)
      {
          foreach ($listeners as $event => $listener) {
              $this->events[$event][] = $listener;
          }
      }
code_tokens: public function registerListeners ( array $ listeners ) { foreach ( $ listeners as $ event => $ listener ) { $ this -> events [ $ event ] [ ] = $ listener ; } }
docstring: Register local event listeners.
  
  @param array $listeners
docstring_tokens: Register local event listeners .