Class to represent a line-item object. More...
Public Member Functions | |
__construct ($label, $scoreMaximum, $resourceId=null, $tag=null, $submissionReview=null) | |
Class constructor. | |
toJsonldObject () | |
Generate the JSON-LD object representation of the line-item. | |
toJsonObject () | |
Generate the JSON object representation of the line-item. | |
Static Public Member Functions | |
static | fromJsonObject ($item) |
Generate a LineItem object from its JSON or JSON-LD representation. | |
Class to represent a line-item object.
Definition at line 14 of file Content/LineItem.php.
__construct | ( | $label, | |
$scoreMaximum, | |||
$resourceId = null , |
|||
$tag = null , |
|||
$submissionReview = null |
|||
) |
Class constructor.
string | $label | Label |
int | $scoreMaximum | Maximum score |
string | null | $resourceId | Resource ID (optional) |
string | null | $tag | Tag (optional) |
SubmissionReview | null | $submissionReview | Submission Review (optional) |
Definition at line 61 of file Content/LineItem.php.
|
static |
Generate a LineItem object from its JSON or JSON-LD representation.
object | $item | A JSON or JSON-LD object representing a content-item |
Definition at line 127 of file Content/LineItem.php.
Referenced by LtiLinkItem\fromJsonObject().
toJsonldObject | ( | ) |
Generate the JSON-LD object representation of the line-item.
Definition at line 75 of file Content/LineItem.php.
toJsonObject | ( | ) |
Generate the JSON object representation of the line-item.
Definition at line 101 of file Content/LineItem.php.