MDL-61574 mod_lti: removed usage of PHP7 reserved word in namespace
[moodle.git] / mod / lti / service / profile / classes / local / service / profile.php
CommitLineData
e3f69b58 1<?php
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * This file contains a class definition for the Tool Consumer Profile service
19 *
20 * @package ltiservice_profile
21 * @copyright 2014 Vital Source Technologies http://vitalsource.com
22 * @author Stephen Vickers
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 */
25
26
27namespace ltiservice_profile\local\service;
28
29defined('MOODLE_INTERNAL') || die();
30
31/**
32 * A service implementing the Tool Consumer Profile.
33 *
34 * @package ltiservice_profile
35 * @since Moodle 2.8
36 * @copyright 2014 Vital Source Technologies http://vitalsource.com
37 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38 */
39class profile extends \mod_lti\local\ltiservice\service_base {
40
41 /**
42 * Class constructor.
43 */
44 public function __construct() {
45
46 parent::__construct();
47 $this->id = 'profile';
48 $this->name = 'Tool Consumer Profile';
49 $this->unsigned = true;
50
51 }
52
53 /**
54 * Get the resources for this service.
55 *
56 * @return array
57 */
58 public function get_resources() {
59
60 if (empty($this->resources)) {
61 $this->resources = array();
6fb64a4e 62 $this->resources[] = new \ltiservice_profile\local\resources\profile($this);
e3f69b58 63 }
64
65 return $this->resources;
66
67 }
68
69}