1
|
|
|
<?php |
2
|
|
|
/* For licensing terms, see /license.txt */ |
3
|
|
|
|
4
|
|
|
namespace Chamilo\PluginBundle\Entity\LtiProvider; |
5
|
|
|
|
6
|
|
|
use Doctrine\ORM\Mapping as ORM; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class Platform. |
10
|
|
|
* |
11
|
|
|
* @package Chamilo\PluginBundle\Entity\LtiProvider |
12
|
|
|
* |
13
|
|
|
* @ORM\Table(name="plugin_lti_provider_platform") |
14
|
|
|
* @ORM\Entity() |
15
|
|
|
*/ |
16
|
|
|
class Platform |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
* |
21
|
|
|
* @ORM\Column(name="issuer", type="text") |
22
|
|
|
*/ |
23
|
|
|
public $issuer; |
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
* |
27
|
|
|
* @ORM\Column(name="id", type="integer") |
28
|
|
|
* @ORM\Id() |
29
|
|
|
* @ORM\GeneratedValue() |
30
|
|
|
*/ |
31
|
|
|
protected $id; |
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
* |
35
|
|
|
* @ORM\Column(name="kid", type="string") |
36
|
|
|
*/ |
37
|
|
|
private $kid; |
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
* |
41
|
|
|
* @ORM\Column(name="client_id", type="text") |
42
|
|
|
*/ |
43
|
|
|
private $clientId; |
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
* |
47
|
|
|
* @ORM\Column(name="auth_login_url", type="text") |
48
|
|
|
*/ |
49
|
|
|
private $authLoginUrl; |
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
* |
53
|
|
|
* @ORM\Column(name="auth_token_url", type="text") |
54
|
|
|
*/ |
55
|
|
|
private $authTokenUrl; |
56
|
|
|
/** |
57
|
|
|
* @var string |
58
|
|
|
* |
59
|
|
|
* @ORM\Column(name="key_set_url", type="text") |
60
|
|
|
*/ |
61
|
|
|
private $keySetUrl; |
62
|
|
|
/** |
63
|
|
|
* @var string |
64
|
|
|
* |
65
|
|
|
* @ORM\Column(name="deployment_id", type="text") |
66
|
|
|
*/ |
67
|
|
|
private $deploymentId; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* Get id. |
71
|
|
|
*/ |
72
|
|
|
public function getId(): int |
73
|
|
|
{ |
74
|
|
|
return $this->id; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* Set id. |
79
|
|
|
*/ |
80
|
|
|
public function setId(int $id): Platform |
81
|
|
|
{ |
82
|
|
|
$this->id = $id; |
83
|
|
|
|
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Get key id. |
89
|
|
|
*/ |
90
|
|
|
public function getKid(): string |
91
|
|
|
{ |
92
|
|
|
return $this->kid; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Set key id. |
97
|
|
|
*/ |
98
|
|
|
public function setKid(string $kid): Platform |
99
|
|
|
{ |
100
|
|
|
$this->kid = $kid; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* Get Issuer. |
107
|
|
|
*/ |
108
|
|
|
public function getIssuer(): string |
109
|
|
|
{ |
110
|
|
|
return $this->issuer; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Set issuer. |
115
|
|
|
*/ |
116
|
|
|
public function setIssuer(string $issuer): Platform |
117
|
|
|
{ |
118
|
|
|
$this->issuer = $issuer; |
119
|
|
|
|
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* Get client ID. |
125
|
|
|
*/ |
126
|
|
|
public function getClientId(): string |
127
|
|
|
{ |
128
|
|
|
return $this->clientId; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* Set client ID. |
133
|
|
|
*/ |
134
|
|
|
public function setClientId(string $clientId): Platform |
135
|
|
|
{ |
136
|
|
|
$this->clientId = $clientId; |
137
|
|
|
|
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Get auth login URL. |
143
|
|
|
*/ |
144
|
|
|
public function getAuthLoginUrl(): string |
145
|
|
|
{ |
146
|
|
|
return $this->authLoginUrl; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* Set auth login URL. |
151
|
|
|
*/ |
152
|
|
|
public function setAuthLoginUrl(string $authLoginUrl): Platform |
153
|
|
|
{ |
154
|
|
|
$this->authLoginUrl = $authLoginUrl; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Get auth token URL. |
161
|
|
|
*/ |
162
|
|
|
public function getAuthTokenUrl(): string |
163
|
|
|
{ |
164
|
|
|
return $this->authTokenUrl; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* Set auth token URL. |
169
|
|
|
*/ |
170
|
|
|
public function setAuthTokenUrl(string $authTokenUrl): Platform |
171
|
|
|
{ |
172
|
|
|
$this->authTokenUrl = $authTokenUrl; |
173
|
|
|
|
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Get key set URL. |
179
|
|
|
*/ |
180
|
|
|
public function getKeySetUrl(): string |
181
|
|
|
{ |
182
|
|
|
return $this->keySetUrl; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* Set key set URL. |
187
|
|
|
*/ |
188
|
|
|
public function setKeySetUrl(string $keySetUrl): Platform |
189
|
|
|
{ |
190
|
|
|
$this->keySetUrl = $keySetUrl; |
191
|
|
|
|
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* Get Deployment ID. |
197
|
|
|
*/ |
198
|
|
|
public function getDeploymentId(): string |
199
|
|
|
{ |
200
|
|
|
return $this->deploymentId; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* Set Deployment ID. |
205
|
|
|
*/ |
206
|
|
|
public function setDeploymentId(string $deploymentId): Platform |
207
|
|
|
{ |
208
|
|
|
$this->deploymentId = $deploymentId; |
209
|
|
|
|
210
|
|
|
return $this; |
211
|
|
|
} |
212
|
|
|
} |
213
|
|
|
|