SubmissionHistory
in package
SubmissionHistory represents the complete history of versions for a submission.
This is a read-only object that does not extend AbstractBaseApi.
Tags
Table of Contents
Properties
- $submissionId : int|null
- $versions : array<string|int, SubmissionVersion>
Methods
- __construct() : mixed
- Constructor to hydrate the object from API response.
- findVersion() : SubmissionVersion|null
- Find a version by its ID.
- fromArray() : self
- Create a SubmissionHistory from an array.
- getEarliestVersion() : SubmissionVersion|null
- Get the earliest version of the submission.
- getGraderIds() : array<string|int, int>
- Get all unique grader IDs from the submission history.
- getLatestVersion() : SubmissionVersion|null
- Get the latest version of the submission.
- getVersionCount() : int
- Get the number of versions in this submission history.
- getVersionsWithGradeChanges() : array<string|int, SubmissionVersion>
- Get all versions that have grade changes.
Properties
$submissionId
public
int|null
$submissionId
= null
$versions
public
array<string|int, SubmissionVersion>
$versions
= []
Methods
__construct()
Constructor to hydrate the object from API response.
public
__construct([array<string, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string, mixed> = []
findVersion()
Find a version by its ID.
public
findVersion(int $versionId) : SubmissionVersion|null
Parameters
- $versionId : int
Return values
SubmissionVersion|nullfromArray()
Create a SubmissionHistory from an array.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
Return values
selfgetEarliestVersion()
Get the earliest version of the submission.
public
getEarliestVersion() : SubmissionVersion|null
Return values
SubmissionVersion|nullgetGraderIds()
Get all unique grader IDs from the submission history.
public
getGraderIds() : array<string|int, int>
Return values
array<string|int, int>getLatestVersion()
Get the latest version of the submission.
public
getLatestVersion() : SubmissionVersion|null
Return values
SubmissionVersion|nullgetVersionCount()
Get the number of versions in this submission history.
public
getVersionCount() : int
Return values
intgetVersionsWithGradeChanges()
Get all versions that have grade changes.
public
getVersionsWithGradeChanges() : array<string|int, SubmissionVersion>