GradebookHistoryGrader
in package
GradebookHistoryGrader represents a grader who worked on assignments on a specific day.
This is a read-only object that does not extend AbstractBaseApi.
Tags
Table of Contents
Properties
- $assignments : array<string|int, int>
- $id : int|null
- $name : string|null
Methods
- __construct() : mixed
- Constructor to hydrate the object from API response.
- fromArray() : self
- Create a GradebookHistoryGrader from an array.
- getAssignmentCount() : int
- Get the number of assignments this grader worked on.
- workedOnAssignment() : bool
- Check if the grader worked on a specific assignment.
Properties
$assignments
public
array<string|int, int>
$assignments
= []
$id
public
int|null
$id
= null
$name
public
string|null
$name
= 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 GradebookHistoryGrader from an array.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
Return values
selfgetAssignmentCount()
Get the number of assignments this grader worked on.
public
getAssignmentCount() : int
Return values
intworkedOnAssignment()
Check if the grader worked on a specific assignment.
public
workedOnAssignment(int $assignmentId) : bool
Parameters
- $assignmentId : int