Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class ProfileScopeSupport implements UserInfoScopeSupport |
||
17 | { |
||
18 | public function __toString(): string |
||
19 | { |
||
20 | return $this->getName(); |
||
21 | } |
||
22 | |||
23 | public function getName(): string |
||
24 | { |
||
25 | return 'profile'; |
||
26 | } |
||
27 | |||
28 | public function getParent(): ?string |
||
29 | { |
||
30 | return 'openid'; |
||
31 | } |
||
32 | |||
33 | public function isParentMandatory(): bool |
||
34 | { |
||
35 | return true; |
||
36 | } |
||
37 | |||
38 | public function getAssociatedClaims(): array |
||
39 | { |
||
40 | return [ |
||
41 | 'name', |
||
42 | 'given_name', |
||
43 | 'middle_name', |
||
44 | 'family_name', |
||
45 | 'nickname', |
||
46 | 'preferred_username', |
||
47 | 'profile', |
||
48 | 'picture', |
||
49 | 'website', |
||
50 | 'gender', |
||
51 | 'birthdate', |
||
52 | 'zoneinfo', |
||
53 | 'locale', |
||
54 | 'updated_at', |
||
55 | ]; |
||
56 | } |
||
57 | |||
58 | public function jsonSerialize(): string |
||
61 | } |
||
62 | } |
||
63 |