|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* YAWIK |
|
4
|
|
|
* |
|
5
|
|
|
* @filesource |
|
6
|
|
|
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7
|
|
|
* @license MIT |
|
8
|
|
|
*/ |
|
9
|
|
|
|
|
10
|
|
|
|
|
11
|
|
|
namespace Cv\Entity; |
|
12
|
|
|
|
|
13
|
|
|
use Core\Entity\AbstractIdentifiableEntity; |
|
14
|
|
|
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @ODM\EmbeddedDocument |
|
18
|
|
|
*/ |
|
19
|
|
|
class Education extends AbstractIdentifiableEntity |
|
20
|
|
|
{ |
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* @var string |
|
24
|
|
|
* @ODM\Field(type="string") |
|
25
|
|
|
*/ |
|
26
|
|
|
protected $startDate; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @var string |
|
30
|
|
|
* @ODM\Field(type="string") |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $endDate; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var bool |
|
36
|
|
|
* @ODM\Boolean |
|
37
|
|
|
*/ |
|
38
|
|
|
protected $currentIndicator; |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* @var string |
|
42
|
|
|
* @ODM\Field(type="string") |
|
43
|
|
|
*/ |
|
44
|
|
|
protected $competencyName; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* @ODM\Field(type="string") |
|
48
|
|
|
*/ |
|
49
|
|
|
protected $organizationName; |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* @var string |
|
53
|
|
|
* @ODM\Field(type="string") |
|
54
|
|
|
*/ |
|
55
|
|
|
protected $description; |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* needed for europass |
|
59
|
|
|
* @ODM\Field(type="string") |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $nationalClassification; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @var string |
|
65
|
|
|
* @ODM\Field(type="string") |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $country; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var string |
|
71
|
|
|
* @ODM\Field(type="string") |
|
72
|
|
|
*/ |
|
73
|
|
|
protected $city; |
|
74
|
|
|
|
|
75
|
|
|
|
|
76
|
|
|
public function setStartDate($startDate) |
|
77
|
|
|
{ |
|
78
|
|
|
$this->startDate = (string) $startDate; |
|
79
|
|
|
return $this; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
public function getStartDate() |
|
83
|
|
|
{ |
|
84
|
|
|
return $this->startDate; |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
|
|
public function setEndDate($endDate) |
|
88
|
|
|
{ |
|
89
|
|
|
$this->endDate = $endDate; |
|
90
|
|
|
return $this; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
public function getEndDate() |
|
94
|
|
|
{ |
|
95
|
|
|
return $this->endDate; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* marks the education as ongoing |
|
100
|
|
|
* |
|
101
|
|
|
* @param bool $currentIndicator |
|
102
|
|
|
* @return \Cv\Entity\Education |
|
103
|
|
|
*/ |
|
104
|
|
|
public function setCurrentIndicator($currentIndicator) |
|
105
|
|
|
{ |
|
106
|
|
|
$this->currentIndicator=$currentIndicator; |
|
107
|
|
|
return $this; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* indicates that the education is ongoing |
|
112
|
|
|
* |
|
113
|
|
|
* @return bool |
|
114
|
|
|
*/ |
|
115
|
|
|
public function getCurrentIndicator() |
|
|
|
|
|
|
116
|
|
|
{ |
|
117
|
|
|
return $this->currentIndicator; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
public function setCompetencyName($competencyName) |
|
121
|
|
|
{ |
|
122
|
|
|
$this->competencyName = $competencyName; |
|
123
|
|
|
return $this; |
|
124
|
|
|
} |
|
125
|
|
|
|
|
126
|
|
|
public function getCompetencyName() |
|
127
|
|
|
{ |
|
128
|
|
|
return $this->competencyName; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* @return the $organizationName |
|
|
|
|
|
|
133
|
|
|
*/ |
|
134
|
|
|
public function getOrganizationName() |
|
135
|
|
|
{ |
|
136
|
|
|
return $this->organizationName; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @param field_type $organizationName |
|
141
|
|
|
*/ |
|
142
|
|
|
public function setOrganizationName($organizationName) |
|
143
|
|
|
{ |
|
144
|
|
|
$this->organizationName = $organizationName; |
|
145
|
|
|
return $this; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
public function setDescription($value) |
|
149
|
|
|
{ |
|
150
|
|
|
$this->description = $value; |
|
151
|
|
|
return $this; |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
public function getDescription() |
|
155
|
|
|
{ |
|
156
|
|
|
return $this->description; |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* @return string |
|
161
|
|
|
*/ |
|
162
|
|
|
public function getCountry() |
|
163
|
|
|
{ |
|
164
|
|
|
return $this->country; |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* @param string $country |
|
169
|
|
|
* @return Education |
|
170
|
|
|
*/ |
|
171
|
|
|
public function setCountry($country) |
|
172
|
|
|
{ |
|
173
|
|
|
$this->country = $country; |
|
174
|
|
|
|
|
175
|
|
|
return $this; |
|
176
|
|
|
} |
|
177
|
|
|
|
|
178
|
|
|
/** |
|
179
|
|
|
* @return string |
|
180
|
|
|
*/ |
|
181
|
|
|
public function getCity() |
|
182
|
|
|
{ |
|
183
|
|
|
return $this->city; |
|
184
|
|
|
} |
|
185
|
|
|
|
|
186
|
|
|
/** |
|
187
|
|
|
* @param string $city |
|
188
|
|
|
* @return Education |
|
189
|
|
|
*/ |
|
190
|
|
|
public function setCity($city) |
|
191
|
|
|
{ |
|
192
|
|
|
$this->city = $city; |
|
193
|
|
|
|
|
194
|
|
|
return $this; |
|
195
|
|
|
} |
|
196
|
|
|
} |
|
197
|
|
|
|
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.