|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* YAWIK |
|
4
|
|
|
* |
|
5
|
|
|
* @filesource |
|
6
|
|
|
* @license MIT |
|
7
|
|
|
* @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8
|
|
|
*/ |
|
9
|
|
|
|
|
10
|
|
|
/** */ |
|
11
|
|
|
namespace Organizations\Entity; |
|
12
|
|
|
|
|
13
|
|
|
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; |
|
14
|
|
|
use Core\Entity\AbstractEntity; |
|
15
|
|
|
|
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Organization Template |
|
19
|
|
|
* |
|
20
|
|
|
* defines default values of an organisations job template |
|
21
|
|
|
* |
|
22
|
|
|
* @ODM\EmbeddedDocument |
|
23
|
|
|
* @author Carsten Bleek <[email protected]> |
|
24
|
|
|
* @since 0.23 |
|
25
|
|
|
*/ |
|
26
|
|
|
class Template extends AbstractEntity implements TemplateInterface |
|
27
|
|
|
{ |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* Label of the requirements field in the job template |
|
31
|
|
|
* |
|
32
|
|
|
* @var $string; |
|
33
|
|
|
*/ |
|
34
|
|
|
protected $labelRequirements='Requirements'; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Label of the qualifications field in the job template |
|
38
|
|
|
* |
|
39
|
|
|
* @var $string; |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $labelQualification='Qualifications'; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Label of the benefits field in the job template |
|
45
|
|
|
* |
|
46
|
|
|
* @var $string; |
|
47
|
|
|
*/ |
|
48
|
|
|
protected $labelBenefits='Benefits'; |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* Sets the label of the requirements form field |
|
52
|
|
|
* |
|
53
|
|
|
* @param string $labelRequirements |
|
54
|
|
|
* |
|
55
|
|
|
* @return self |
|
|
|
|
|
|
56
|
|
|
*/ |
|
57
|
|
|
public function setLabelRequirements($labelRequirements) |
|
58
|
|
|
{ |
|
59
|
|
|
$this->labelRequirements=$labelRequirements; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Gets the label of the requirements form field |
|
64
|
|
|
* |
|
65
|
|
|
* @return string |
|
66
|
|
|
*/ |
|
67
|
|
|
public function getLabelRequirements() |
|
68
|
|
|
{ |
|
69
|
|
|
return $this->labelRequirements; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* Sets the label of the qualifications form field |
|
74
|
|
|
* |
|
75
|
|
|
* @param string $labelQualification |
|
76
|
|
|
* |
|
77
|
|
|
* @return self |
|
|
|
|
|
|
78
|
|
|
*/ |
|
79
|
|
|
public function setLabelQualification($labelQualification) |
|
80
|
|
|
{ |
|
81
|
|
|
$this->labelQualification=$labelQualification; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* Gets the label of the qualifications form field |
|
86
|
|
|
* |
|
87
|
|
|
* @return string |
|
88
|
|
|
*/ |
|
89
|
|
|
public function getLabelQualification() |
|
90
|
|
|
{ |
|
91
|
|
|
return $this->labelQualification; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* Sets the label of the benefits form field |
|
96
|
|
|
* |
|
97
|
|
|
* @param string $labelBenefits |
|
98
|
|
|
* |
|
99
|
|
|
* @return self |
|
|
|
|
|
|
100
|
|
|
*/ |
|
101
|
|
|
public function setLabelBenefits($labelBenefits) |
|
102
|
|
|
{ |
|
103
|
|
|
$this->labelBenefits=$labelBenefits; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Gets the label of the benefits form field |
|
108
|
|
|
* |
|
109
|
|
|
* @return string |
|
110
|
|
|
*/ |
|
111
|
|
|
public function getLabelBenefits() |
|
112
|
|
|
{ |
|
113
|
|
|
return $this->labelBenefits; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
|
|
117
|
|
|
} |
|
118
|
|
|
|
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.