Class to represent a line-item object.
More...
|
| __construct (string $label, int|float $scoreMaximum, ?string $resourceId=null, ?string $tag=null, ?SubmissionReview $submissionReview=null) |
| Class constructor.
|
|
object | toJsonldObject () |
| Generate the JSON-LD object representation of the line-item.
|
|
object | toJsonObject () |
| Generate the JSON object representation of the line-item.
|
|
|
static LineItem null | fromJsonObject (object $item) |
| Generate a LineItem object from its JSON or JSON-LD representation.
|
|
Class to represent a line-item object.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
__construct |
( |
string | $label, |
|
|
int|float | $scoreMaximum, |
|
|
?string | $resourceId = null, |
|
|
?string | $tag = null, |
|
|
?SubmissionReview | $submissionReview = null ) |
Class constructor.
- Parameters
-
string | $label | Label |
int | float | $scoreMaximum | Maximum score |
string | null | $resourceId | Resource ID (optional) |
string | null | $tag | Tag (optional) |
SubmissionReview | null | $submissionReview | Submission Review (optional) |
◆ fromJsonObject()
static LineItem null fromJsonObject |
( |
object | $item | ) |
|
|
static |
Generate a LineItem object from its JSON or JSON-LD representation.
- Parameters
-
object | $item | A JSON or JSON-LD object representing a content-item |
- Returns
- LineItem|null The LineItem object
References SubmissionReview\fromJsonObject().
◆ toJsonldObject()
object toJsonldObject |
( |
| ) |
|
Generate the JSON-LD object representation of the line-item.
- Returns
- object JSON object
◆ toJsonObject()
Generate the JSON object representation of the line-item.
- Returns
- object JSON object