ClientMetadata   A
last analyzed

Complexity

Total Complexity 30

Size/Duplication

Total Lines 315
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 315
rs 10
c 0
b 0
f 0
wmc 30

30 Methods

Rating   Name   Duplication   Size   Complexity  
A getTokenEndpointAuthMethod() 0 3 1
A getJwksUri() 0 3 1
A setTokenEndpointAuthMethod() 0 3 1
A getScopes() 0 3 1
A setLogoUri() 0 3 1
A getLogoUri() 0 3 1
A setScopes() 0 3 1
A setRedirectUris() 0 3 1
A getSoftwareId() 0 3 1
A getJwks() 0 3 1
A getContacts() 0 3 1
A setClientName() 0 3 1
A getRedirectUris() 0 3 1
A setJwksUri() 0 3 1
A setResponseTypes() 0 3 1
A setSoftwareVersion() 0 3 1
A setPolicyUri() 0 3 1
A setContacts() 0 3 1
A getSoftwareVersion() 0 3 1
A getClientUri() 0 3 1
A getPolicyUri() 0 3 1
A getGrantTypes() 0 3 1
A getResponseTypes() 0 3 1
A setTosUri() 0 3 1
A getClientName() 0 3 1
A setGrantTypes() 0 3 1
A setClientUri() 0 3 1
A getTosUri() 0 3 1
A setSoftwareId() 0 3 1
A setJwks() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 06/03/2018
6
 * Time: 23:37
7
 */
8
9
namespace OAuth2\Roles\ClientTypes;
10
11
class ClientMetadata implements ClientMetadataInterface
12
{
13
    /**
14
     * @var array|null
15
     */
16
    protected $redirectUris;
17
18
    /**
19
     * @var string|null
20
     */
21
    protected $tokenEndpointAuthMethod;
22
23
    /**
24
     * @var array|null
25
     */
26
    protected $grantTypes;
27
28
    /**
29
     * @var array|null
30
     */
31
    protected $responseTypes;
32
33
    /**
34
     * @var string|null
35
     */
36
    protected $clientName;
37
38
    /**
39
     * @var string|null
40
     */
41
    protected $clientUri;
42
43
    /**
44
     * @var string|null
45
     */
46
    protected $logoUri;
47
48
    /**
49
     * @var string[]|null
50
     */
51
    protected $scopes;
52
53
    /**
54
     * @var array|null
55
     */
56
    protected $contacts;
57
58
    /**
59
     * @var string|null
60
     */
61
    protected $tosUri;
62
63
    /**
64
     * @var string|null
65
     */
66
    protected $policyUri;
67
68
    /**
69
     * @var string|null
70
     */
71
    protected $jwksUri;
72
73
    /**
74
     * @var array|null
75
     */
76
    protected $jwks;
77
78
    /**
79
     * @var string|null
80
     */
81
    protected $softwareId;
82
83
    /**
84
     * @var string|null
85
     */
86
    protected $softwareVersion;
87
88
    /**
89
     * @return array|null
90
     */
91
    public function getRedirectUris(): ?array
92
    {
93
        return $this->redirectUris;
94
    }
95
96
    /**
97
     * @param array|null $redirectUris
98
     */
99
    public function setRedirectUris(?array $redirectUris): void
100
    {
101
        $this->redirectUris = $redirectUris;
102
    }
103
104
    /**
105
     * @return null|string
106
     */
107
    public function getTokenEndpointAuthMethod(): ?string
108
    {
109
        return $this->tokenEndpointAuthMethod;
110
    }
111
112
    /**
113
     * @param null|string $tokenEndpointAuthMethod
114
     */
115
    public function setTokenEndpointAuthMethod(?string $tokenEndpointAuthMethod): void
116
    {
117
        $this->tokenEndpointAuthMethod = $tokenEndpointAuthMethod;
118
    }
119
120
    /**
121
     * @return array|null
122
     */
123
    public function getGrantTypes(): ?array
124
    {
125
        return $this->grantTypes;
126
    }
127
128
    /**
129
     * @param array|null $grantTypes
130
     */
131
    public function setGrantTypes(?array $grantTypes): void
132
    {
133
        $this->grantTypes = $grantTypes;
134
    }
135
136
    /**
137
     * @return array|null
138
     */
139
    public function getResponseTypes(): ?array
140
    {
141
        return $this->responseTypes;
142
    }
143
144
    /**
145
     * @param array|null $responseTypes
146
     */
147
    public function setResponseTypes(?array $responseTypes): void
148
    {
149
        $this->responseTypes = $responseTypes;
150
    }
151
152
    /**
153
     * @return null|string
154
     */
155
    public function getClientName(): ?string
156
    {
157
        return $this->clientName;
158
    }
159
160
    /**
161
     * @param null|string $clientName
162
     */
163
    public function setClientName(?string $clientName): void
164
    {
165
        $this->clientName = $clientName;
166
    }
167
168
    /**
169
     * @return null|string
170
     */
171
    public function getClientUri(): ?string
172
    {
173
        return $this->clientUri;
174
    }
175
176
    /**
177
     * @param null|string $clientUri
178
     */
179
    public function setClientUri(?string $clientUri): void
180
    {
181
        $this->clientUri = $clientUri;
182
    }
183
184
    /**
185
     * @return null|string
186
     */
187
    public function getLogoUri(): ?string
188
    {
189
        return $this->logoUri;
190
    }
191
192
    /**
193
     * @param null|string $logoUri
194
     */
195
    public function setLogoUri(?string $logoUri): void
196
    {
197
        $this->logoUri = $logoUri;
198
    }
199
200
    /**
201
     * @return null|string[]
202
     */
203
    public function getScopes(): ?array
204
    {
205
        return $this->scopes;
206
    }
207
208
    /**
209
     * @param null|string[] $scopes
210
     */
211
    public function setScopes(?array $scopes): void
212
    {
213
        $this->scopes = $scopes;
214
    }
215
216
    /**
217
     * @return array|null
218
     */
219
    public function getContacts(): ?array
220
    {
221
        return $this->contacts;
222
    }
223
224
    /**
225
     * @param array|null $contacts
226
     */
227
    public function setContacts(?array $contacts): void
228
    {
229
        $this->contacts = $contacts;
230
    }
231
232
    /**
233
     * @return null|string
234
     */
235
    public function getTosUri(): ?string
236
    {
237
        return $this->tosUri;
238
    }
239
240
    /**
241
     * @param null|string $tosUri
242
     */
243
    public function setTosUri(?string $tosUri): void
244
    {
245
        $this->tosUri = $tosUri;
246
    }
247
248
    /**
249
     * @return null|string
250
     */
251
    public function getPolicyUri(): ?string
252
    {
253
        return $this->policyUri;
254
    }
255
256
    /**
257
     * @param null|string $policyUri
258
     */
259
    public function setPolicyUri(?string $policyUri): void
260
    {
261
        $this->policyUri = $policyUri;
262
    }
263
264
    /**
265
     * @return null|string
266
     */
267
    public function getJwksUri(): ?string
268
    {
269
        return $this->jwksUri;
270
    }
271
272
    /**
273
     * @param null|string $jwksUri
274
     */
275
    public function setJwksUri(?string $jwksUri): void
276
    {
277
        $this->jwksUri = $jwksUri;
278
    }
279
280
    /**
281
     * @return array|null
282
     */
283
    public function getJwks(): ?array
284
    {
285
        return $this->jwks;
286
    }
287
288
    /**
289
     * @param array|null $jwks
290
     */
291
    public function setJwks(?array $jwks): void
292
    {
293
        $this->jwks = $jwks;
294
    }
295
296
    /**
297
     * @return null|string
298
     */
299
    public function getSoftwareId(): ?string
300
    {
301
        return $this->softwareId;
302
    }
303
304
    /**
305
     * @param null|string $softwareId
306
     */
307
    public function setSoftwareId(?string $softwareId): void
308
    {
309
        $this->softwareId = $softwareId;
310
    }
311
312
    /**
313
     * @return null|string
314
     */
315
    public function getSoftwareVersion(): ?string
316
    {
317
        return $this->softwareVersion;
318
    }
319
320
    /**
321
     * @param null|string $softwareVersion
322
     */
323
    public function setSoftwareVersion(?string $softwareVersion): void
324
    {
325
        $this->softwareVersion = $softwareVersion;
326
    }
327
}