original_string: public function addListenerForEvent($eventClassName, $listener)
      {
          if (FALSE === array_key_exists($eventClassName, $this->eventMap))
          {
              $this->eventMap[$eventClassName] = [];
          }
          $this->eventMap[$eventClassName][] = $listener;
      }
code: public function addListenerForEvent($eventClassName, $listener)
      {
          if (FALSE === array_key_exists($eventClassName, $this->eventMap))
          {
              $this->eventMap[$eventClassName] = [];
          }
          $this->eventMap[$eventClassName][] = $listener;
      }
code_tokens: public function addListenerForEvent ( $ eventClassName , $ listener ) { if ( FALSE === array_key_exists ( $ eventClassName , $ this -> eventMap ) ) { $ this -> eventMap [ $ eventClassName ] = [ ] ; } $ this -> eventMap [ $ eventClassName ] [ ] = $ listener ; }
docstring: Adds a new listener for an event.
  
  @param string   $eventClassName The event class name.
  @param callable $listener       Any kind of callable.
  @return void
docstring_tokens: Adds a new listener for an event .