original_string: protected function get_legacy_eventdata() {
          $legacyeventdata = $this->get_record_snapshot('user_enrolments', $this->objectid);
          $legacyeventdata->enrol = $this->other['enrol'];
          $legacyeventdata->courseid = $this->courseid;
          return $legacyeventdata;
      }
code: protected function get_legacy_eventdata() {
          $legacyeventdata = $this->get_record_snapshot('user_enrolments', $this->objectid);
          $legacyeventdata->enrol = $this->other['enrol'];
          $legacyeventdata->courseid = $this->courseid;
          return $legacyeventdata;
      }
code_tokens: protected function get_legacy_eventdata ( ) { $ legacyeventdata = $ this -> get_record_snapshot ( 'user_enrolments' , $ this -> objectid ) ; $ legacyeventdata -> enrol = $ this -> other [ 'enrol' ] ; $ legacyeventdata -> courseid = $ this -> courseid ; return $ legacyeventdata ; }
docstring: Return user_enrolled legacy event data.
  
  @return \stdClass
docstring_tokens: Return user_enrolled legacy event data .