original_string: private static function get_grade_structure($required = VALUE_REQUIRED) {
          return new external_single_structure(
              array(
                  'id'                => new external_value(PARAM_INT, 'grade id'),
                  'assignment'        => new external_value(PARAM_INT, 'assignment id', VALUE_OPTIONAL),
                  'userid'            => new external_value(PARAM_INT, 'student id'),
                  'attemptnumber'     => new external_value(PARAM_INT, 'attempt number'),
                  'timecreated'       => new external_value(PARAM_INT, 'grade creation time'),
                  'timemodified'      => new external_value(PARAM_INT, 'grade last modified time'),
                  'grader'            => new external_value(PARAM_INT, 'grader, -1 if grader is hidden'),
                  'grade'             => new external_value(PARAM_TEXT, 'grade'),
                  'gradefordisplay'   => new external_value(PARAM_RAW, 'grade rendered into a format suitable for display',
                                                              VALUE_OPTIONAL),
              ), 'grade information', $required
          );
      }
code: private static function get_grade_structure($required = VALUE_REQUIRED) {
          return new external_single_structure(
              array(
                  'id'                => new external_value(PARAM_INT, 'grade id'),
                  'assignment'        => new external_value(PARAM_INT, 'assignment id', VALUE_OPTIONAL),
                  'userid'            => new external_value(PARAM_INT, 'student id'),
                  'attemptnumber'     => new external_value(PARAM_INT, 'attempt number'),
                  'timecreated'       => new external_value(PARAM_INT, 'grade creation time'),
                  'timemodified'      => new external_value(PARAM_INT, 'grade last modified time'),
                  'grader'            => new external_value(PARAM_INT, 'grader, -1 if grader is hidden'),
                  'grade'             => new external_value(PARAM_TEXT, 'grade'),
                  'gradefordisplay'   => new external_value(PARAM_RAW, 'grade rendered into a format suitable for display',
                                                              VALUE_OPTIONAL),
              ), 'grade information', $required
          );
      }
code_tokens: private static function get_grade_structure ( $ required = VALUE_REQUIRED ) { return new external_single_structure ( array ( 'id' => new external_value ( PARAM_INT , 'grade id' ) , 'assignment' => new external_value ( PARAM_INT , 'assignment id' , VALUE_OPTIONAL ) , 'userid' => new external_value ( PARAM_INT , 'student id' ) , 'attemptnumber' => new external_value ( PARAM_INT , 'attempt number' ) , 'timecreated' => new external_value ( PARAM_INT , 'grade creation time' ) , 'timemodified' => new external_value ( PARAM_INT , 'grade last modified time' ) , 'grader' => new external_value ( PARAM_INT , 'grader, -1 if grader is hidden' ) , 'grade' => new external_value ( PARAM_TEXT , 'grade' ) , 'gradefordisplay' => new external_value ( PARAM_RAW , 'grade rendered into a format suitable for display' , VALUE_OPTIONAL ) , ) , 'grade information' , $ required ) ; }
docstring: Creates a grade single structure.
  
  @return external_single_structure a grade single structure.
  @since  Moodle 3.1
docstring_tokens: Creates a grade single structure .