original_string: public function get_eventobject_for_processor($processorname) {
          // This is done for Backwards compatibility. We should consider throwing notices here in future versions and requesting
          // them to use proper api.
  
          $eventdata = new \stdClass();
          foreach ($this->properties as $prop) {
              $func = "get_$prop";
              $eventdata->$prop = method_exists($this, $func) ? $this->$func($processorname) : $this->$prop;
          }
          return $eventdata;
      }
code: public function get_eventobject_for_processor($processorname) {
          // This is done for Backwards compatibility. We should consider throwing notices here in future versions and requesting
          // them to use proper api.
  
          $eventdata = new \stdClass();
          foreach ($this->properties as $prop) {
              $func = "get_$prop";
              $eventdata->$prop = method_exists($this, $func) ? $this->$func($processorname) : $this->$prop;
          }
          return $eventdata;
      }
code_tokens: public function get_eventobject_for_processor ( $ processorname ) { // This is done for Backwards compatibility. We should consider throwing notices here in future versions and requesting // them to use proper api. $ eventdata = new \ stdClass ( ) ; foreach ( $ this -> properties as $ prop ) { $ func = "get_$prop" ; $ eventdata -> $ prop = method_exists ( $ this , $ func ) ? $ this -> $ func ( $ processorname ) : $ this -> $ prop ; } return $ eventdata ; }
docstring: Get a event object for a specific processor in stdClass format.
  
  @param string $processorname Name of the processor.
  
  @return \stdClass event object in stdClass format.
docstring_tokens: Get a event object for a specific processor in stdClass format .