Differences Between: [Versions 311 and 402] [Versions 311 and 403]
1 <?php 2 3 namespace IMSGlobal\LTI\Profile; 4 5 /** 6 * Class to represent an LTI service object 7 * 8 * @author Stephen P Vickers <svickers@imsglobal.org> 9 * @copyright IMS Global Learning Consortium Inc 10 * @date 2016 11 * @version 3.0.0 12 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 13 */ 14 15 class ServiceDefinition 16 { 17 18 /** 19 * Media types supported by service. 20 * 21 * @var array $formats 22 */ 23 public $formats = null; 24 /** 25 * HTTP actions accepted by service. 26 * 27 * @var array $actions 28 */ 29 public $actions = null; 30 /** 31 * ID of service. 32 * 33 * @var string $id 34 */ 35 public $id = null; 36 /** 37 * URL for service requests. 38 * 39 * @var string $endpoint 40 */ 41 public $endpoint = null; 42 43 /** 44 * Class constructor. 45 * 46 * @param array $formats Array of media types supported by service 47 * @param array $actions Array of HTTP actions accepted by service 48 * @param string $id ID of service (optional) 49 * @param string $endpoint URL for service requests (optional) 50 */ 51 52 function __construct($formats, $actions, $id = null, $endpoint = null) 53 { 54 55 $this->formats = $formats; 56 $this->actions = $actions; 57 $this->id = $id; 58 $this->endpoint = $endpoint; 59 60 } 61 62 function setId($id) { 63 64 $this->id = $id; 65 66 } 67 68 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body