original_string: public function callEvent($event_name)
      {
          $classname = get_called_class();
          if (!isset(static::$callbacks[$classname][$event_name])) {
              return;
          }
  
          foreach (static::$callbacks[$classname][$event_name] as $callback) {
              $callback($this);
          }
      }
code: public function callEvent($event_name)
      {
          $classname = get_called_class();
          if (!isset(static::$callbacks[$classname][$event_name])) {
              return;
          }
  
          foreach (static::$callbacks[$classname][$event_name] as $callback) {
              $callback($this);
          }
      }
code_tokens: public function callEvent ( $ event_name ) { $ classname = get_called_class ( ) ; if ( ! isset ( static :: $ callbacks [ $ classname ] [ $ event_name ] ) ) { return ; } foreach ( static :: $ callbacks [ $ classname ] [ $ event_name ] as $ callback ) { $ callback ( $ this ) ; } }
docstring: Call an event on this entity, calling the registering
  callbacks.
  
  @param string $event_name
docstring_tokens: Call an event on this entity calling the registering callbacks .