1
|
|
|
<?php |
2
|
|
|
/* For licensing terms, see /license.txt */ |
3
|
|
|
|
4
|
|
|
namespace Chamilo\PluginBundle\LtiProvider\Entity; |
5
|
|
|
|
6
|
|
|
use Doctrine\ORM\Mapping as ORM; |
7
|
|
|
|
8
|
|
|
#[ORM\Table(name: 'plugin_lti_provider_platform')] |
9
|
|
|
#[ORM\Entity] |
10
|
|
|
class Platform |
11
|
|
|
{ |
12
|
|
|
#[ORM\Column(name: 'issuer', type: 'text')] |
13
|
|
|
public string $issuer; |
14
|
|
|
|
15
|
|
|
#[ORM\Column(name: 'id', type: 'integer')] |
16
|
|
|
#[ORM\Id] |
17
|
|
|
#[ORM\GeneratedValue] |
18
|
|
|
protected ?int $id; |
19
|
|
|
|
20
|
|
|
#[ORM\Column(name: 'kid', type: 'string')] |
21
|
|
|
private string $kid; |
22
|
|
|
|
23
|
|
|
#[ORM\Column(name: 'client_id', type: 'text')] |
24
|
|
|
private string $clientId; |
25
|
|
|
|
26
|
|
|
#[ORM\Column(name: 'auth_login_url', type: 'text')] |
27
|
|
|
private string $authLoginUrl; |
28
|
|
|
|
29
|
|
|
#[ORM\Column(name: 'auth_token_url', type: 'text')] |
30
|
|
|
private string $authTokenUrl; |
31
|
|
|
|
32
|
|
|
#[ORM\Column(name: 'key_set_url', type: 'text')] |
33
|
|
|
private string $keySetUrl; |
34
|
|
|
|
35
|
|
|
#[ORM\Column(name: 'deployment_id', type: 'text')] |
36
|
|
|
private string $deploymentId; |
37
|
|
|
|
38
|
|
|
#[ORM\Column(name: 'tool_provider', type: 'text')] |
39
|
|
|
private string $toolProvider; |
40
|
|
|
|
41
|
|
|
public function getId(): ?int |
42
|
|
|
{ |
43
|
|
|
return $this->id; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function setId(int $id): static |
47
|
|
|
{ |
48
|
|
|
$this->id = $id; |
49
|
|
|
|
50
|
|
|
return $this; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function getToolProvider(): string |
54
|
|
|
{ |
55
|
|
|
return $this->toolProvider; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function setToolProvider(?string $toolProvider): void |
59
|
|
|
{ |
60
|
|
|
$this->toolProvider = $toolProvider; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
public function getKid(): string |
64
|
|
|
{ |
65
|
|
|
return $this->kid; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function setKid(string $kid): static |
69
|
|
|
{ |
70
|
|
|
$this->kid = $kid; |
71
|
|
|
|
72
|
|
|
return $this; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function getIssuer(): string |
76
|
|
|
{ |
77
|
|
|
return $this->issuer; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
public function setIssuer(string $issuer): static |
81
|
|
|
{ |
82
|
|
|
$this->issuer = $issuer; |
83
|
|
|
|
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
public function getClientId(): string |
88
|
|
|
{ |
89
|
|
|
return $this->clientId; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
public function setClientId(string $clientId): static |
93
|
|
|
{ |
94
|
|
|
$this->clientId = $clientId; |
95
|
|
|
|
96
|
|
|
return $this; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* Get auth login URL. |
101
|
|
|
*/ |
102
|
|
|
public function getAuthLoginUrl() |
103
|
|
|
{ |
104
|
|
|
return $this->authLoginUrl; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* Set auth login URL. |
109
|
|
|
*/ |
110
|
|
|
public function setAuthLoginUrl(string $authLoginUrl): static |
111
|
|
|
{ |
112
|
|
|
$this->authLoginUrl = $authLoginUrl; |
113
|
|
|
|
114
|
|
|
return $this; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
public function getAuthTokenUrl(): string |
118
|
|
|
{ |
119
|
|
|
return $this->authTokenUrl; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function setAuthTokenUrl(string $authTokenUrl): static |
123
|
|
|
{ |
124
|
|
|
$this->authTokenUrl = $authTokenUrl; |
125
|
|
|
|
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
public function getKeySetUrl(): string |
130
|
|
|
{ |
131
|
|
|
return $this->keySetUrl; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function setKeySetUrl(string $keySetUrl): static |
135
|
|
|
{ |
136
|
|
|
$this->keySetUrl = $keySetUrl; |
137
|
|
|
|
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
public function getDeploymentId(): string |
142
|
|
|
{ |
143
|
|
|
return $this->deploymentId; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function setDeploymentId(string $deploymentId): static |
147
|
|
|
{ |
148
|
|
|
$this->deploymentId = $deploymentId; |
149
|
|
|
|
150
|
|
|
return $this; |
151
|
|
|
} |
152
|
|
|
} |
153
|
|
|
|