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;
    }
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;
    }
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 ; }
Return user_enrolled legacy event data.

@return \stdClass
Return user_enrolled legacy event data .