SubmissionVersion
in package
SubmissionVersion represents a version of a submission with grade change history.
This is a read-only object that does not extend AbstractBaseApi.
Tags
Table of Contents
Properties
- $assignmentId : int|null
- $assignmentName : string|null
- $body : string|null
- $currentGrade : string|null
- $currentGradedAt : string|null
- $currentGrader : string|null
- $gradedAt : string|null
- $gradeMatchesCurrentSubmission : bool|null
- $grader : string|null
- $graderId : int|null
- $id : int|null
- $newGrade : string|null
- $newGradedAt : string|null
- $newGrader : string|null
- $previousGrade : string|null
- $previousGradedAt : string|null
- $previousGrader : string|null
- $score : float|null
- $submissionType : string|null
- $url : string|null
- $userId : int|null
- $userName : string|null
- $workflowState : string|null
Methods
- __construct() : mixed
- Constructor to hydrate the object from API response.
- fromArray() : self
- Create a SubmissionVersion from an array.
- getGrade() : string|null
- Get the grade value (for simplified feed responses).
- getGradedTimestamp() : string|null
- Get the graded timestamp.
- getGraderName() : string|null
- Get the grader name.
- hasGradeChange() : bool
- Check if this version represents a grade change.
- isGraded() : bool
- Check if the submission is graded.
- isUnsubmitted() : bool
- Check if the submission is unsubmitted.
Properties
$assignmentId
public
int|null
$assignmentId
= null
$assignmentName
public
string|null
$assignmentName
= null
$body
public
string|null
$body
= null
$currentGrade
public
string|null
$currentGrade
= null
$currentGradedAt
public
string|null
$currentGradedAt
= null
$currentGrader
public
string|null
$currentGrader
= null
$gradedAt
public
string|null
$gradedAt
= null
$gradeMatchesCurrentSubmission
public
bool|null
$gradeMatchesCurrentSubmission
= null
$grader
public
string|null
$grader
= null
$graderId
public
int|null
$graderId
= null
$id
public
int|null
$id
= null
$newGrade
public
string|null
$newGrade
= null
$newGradedAt
public
string|null
$newGradedAt
= null
$newGrader
public
string|null
$newGrader
= null
$previousGrade
public
string|null
$previousGrade
= null
$previousGradedAt
public
string|null
$previousGradedAt
= null
$previousGrader
public
string|null
$previousGrader
= null
$score
public
float|null
$score
= null
$submissionType
public
string|null
$submissionType
= null
$url
public
string|null
$url
= null
$userId
public
int|null
$userId
= null
$userName
public
string|null
$userName
= null
$workflowState
public
string|null
$workflowState
= null
Methods
__construct()
Constructor to hydrate the object from API response.
public
__construct([array<string, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string, mixed> = []
fromArray()
Create a SubmissionVersion from an array.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
Return values
selfgetGrade()
Get the grade value (for simplified feed responses).
public
getGrade() : string|null
Returns new_grade if available, otherwise current_grade.
Return values
string|nullgetGradedTimestamp()
Get the graded timestamp.
public
getGradedTimestamp() : string|null
Returns new_graded_at if available, otherwise graded_at.
Return values
string|nullgetGraderName()
Get the grader name.
public
getGraderName() : string|null
Returns new_grader if available, otherwise grader.
Return values
string|nullhasGradeChange()
Check if this version represents a grade change.
public
hasGradeChange() : bool
Return values
boolisGraded()
Check if the submission is graded.
public
isGraded() : bool
Return values
boolisUnsubmitted()
Check if the submission is unsubmitted.
public
isUnsubmitted() : bool