Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]
1 <?php 2 3 namespace IMSGlobal\LTI\ToolProvider; 4 5 /** 6 * Class to represent an outcome 7 * 8 * @author Stephen P Vickers <svickers@imsglobal.org> 9 * @copyright IMS Global Learning Consortium Inc 10 * @date 2016 11 * @version 3.0.2 12 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 13 */ 14 #[\AllowDynamicProperties] 15 class Outcome 16 { 17 18 /** 19 * Language value. 20 * 21 * @var string $language 22 */ 23 public $language = null; 24 /** 25 * Outcome status value. 26 * 27 * @var string $status 28 */ 29 public $status = null; 30 /** 31 * Outcome date value. 32 * 33 * @var string $date 34 */ 35 public $date = null; 36 /** 37 * Outcome type value. 38 * 39 * @var string $type 40 */ 41 public $type = null; 42 /** 43 * Outcome data source value. 44 * 45 * @var string $dataSource 46 */ 47 public $dataSource = null; 48 49 /** 50 * Outcome value. 51 * 52 * @var string $value 53 */ 54 private $value = null; 55 56 /** 57 * Class constructor. 58 * 59 * @param string $value Outcome value (optional, default is none) 60 */ 61 public function __construct($value = null) 62 { 63 64 $this->value = $value; 65 $this->language = 'en-US'; 66 $this->date = gmdate('Y-m-d\TH:i:s\Z', time()); 67 $this->type = 'decimal'; 68 69 } 70 71 /** 72 * Get the outcome value. 73 * 74 * @return string Outcome value 75 */ 76 public function getValue() 77 { 78 79 return $this->value; 80 81 } 82 83 /** 84 * Set the outcome value. 85 * 86 * @param string $value Outcome value 87 */ 88 public function setValue($value) 89 { 90 91 $this->value = $value; 92 93 } 94 95 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body