-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMemberSkill.php
More file actions
179 lines (156 loc) · 3.61 KB
/
MemberSkill.php
File metadata and controls
179 lines (156 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
declare(strict_types=1);
namespace SkillDisplay\PHPToolKit\Entity;
class MemberSkill
{
private int $id = 0;
private string $created = '';
private string $granted = '';
private int $skillUid = 0;
private string $skillUUid = '';
private string $skill = '';
private string $domainTag = '';
private string $level = '';
private string $user = '';
private string $firstName = '';
private string $lastName = '';
private string $certifier = '';
private string $organisation = '';
private string $campaign = '';
private int $skillSetUid = 0;
private string $skillSetName = '';
public static function createFromJson(string $json_encode, \SkillDisplay\PHPToolKit\Configuration\Settings $settings)
{
$json = json_decode($json_encode, true);
$entity = new self();
$entity->id = $json['uid'] ?? 0;
$entity->created = $json['created'] ?? '';
$entity->granted = $json['granted'] ?? '';
$entity->skillUid = $json['skillUid'] ?? 0;
$entity->skillUUid = $json['skillUUid'] ?? '';
$entity->skill = $json['skill'] ?? '';
$entity->domainTag = $json['domainTag'] ?? '';
$entity->level = $json['level'] ?? '';
$entity->user = $json['user'] ?? '';
$entity->firstName = $json['firstName'] ?? '';
$entity->lastName = $json['lastName'] ?? '';
$entity->certifier = $json['certifier'] ?? '';
$entity->organisation = $json['organisation'] ?? '';
$entity->campaign = $json['campaign'] ?? '';
$entity->skillSetUid = $json['skillSetUid'] ?? 0;
$entity->skillSetName = $json['skillSetName'] ?? '';
return $entity;
}
/**
* @return string
*/
public function getCreated(): string
{
return $this->created;
}
/**
* @return string
*/
public function getGranted(): string
{
return $this->granted;
}
/**
* @return int
*/
public function getSkillUid(): int
{
return $this->skillUid;
}
/**
* @return string
*/
public function getSkillUUid(): string
{
return $this->skillUUid;
}
/**
* @return string
*/
public function getSkill(): string
{
return $this->skill;
}
/**
* @return string
*/
public function getDomainTag(): string
{
return $this->domainTag;
}
/**
* @return string
*/
public function getLevel(): string
{
return $this->level;
}
/**
* @return string
*/
public function getUser(): string
{
return $this->user;
}
/**
* @return string
*/
public function getFirstName(): string
{
return $this->firstName;
}
/**
* @return string
*/
public function getLastName(): string
{
return $this->lastName;
}
/**
* @return string
*/
public function getCertifier(): string
{
return $this->certifier;
}
/**
* @return string
*/
public function getOrganisation(): string
{
return $this->organisation;
}
/**
* @return string
*/
public function getCampaign(): string
{
return $this->campaign;
}
/**
* @return int
*/
public function getSkillSetUid(): int
{
return $this->skillSetUid;
}
/**
* @return string
*/
public function getSkillSetName(): string
{
return $this->skillSetName;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
}