LTI Integration Library  3.1.0
PHP class library for building LTI integrations
Outcome.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ceLTIc\LTI;
4 
13 class Outcome
14 {
15 
21  public $language = null;
22 
28  public $status = null;
29 
35  public $date = null;
36 
42  public $type = null;
43 
49  public $dataSource = null;
50 
56  private $value = null;
57 
63  public function __construct($value = null)
64  {
65  $this->value = $value;
66  $this->language = 'en-US';
67  $this->date = gmdate('Y-m-d\TH:i:s\Z', time());
68  $this->type = 'decimal';
69  }
70 
76  public function getValue()
77  {
78  return $this->value;
79  }
80 
86  public function setValue($value)
87  {
88  $this->value = $value;
89  }
90 
91 }
Class to represent an outcome.
Definition: Outcome.php:13
$language
Language value.
Definition: Outcome.php:21
setValue($value)
Set the outcome value.
Definition: Outcome.php:86
$status
Outcome status value.
Definition: Outcome.php:28
$type
Outcome type value.
Definition: Outcome.php:42
getValue()
Get the outcome value.
Definition: Outcome.php:76
$date
Outcome date value.
Definition: Outcome.php:35
__construct($value=null)
Class constructor.
Definition: Outcome.php:63
$dataSource
Outcome data source value.
Definition: Outcome.php:49