|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Developtech\AgilityBundle\Model; |
|
4
|
|
|
|
|
5
|
|
|
use Symfony\Component\Security\Core\User\UserInterface; |
|
6
|
|
|
|
|
7
|
|
|
abstract class JobModel { |
|
8
|
|
|
/** @var string */ |
|
9
|
|
|
protected $name; |
|
10
|
|
|
/** @var string */ |
|
11
|
|
|
protected $slug; |
|
12
|
|
|
/** @var string*/ |
|
13
|
|
|
protected $description; |
|
14
|
|
|
/** @var \DateTime*/ |
|
15
|
|
|
protected $createdAt; |
|
16
|
|
|
/** @var \DateTime */ |
|
17
|
|
|
protected $updatedAt; |
|
18
|
|
|
/** @var integer */ |
|
19
|
|
|
protected $status; |
|
20
|
|
|
/** @var ProjectModel */ |
|
21
|
|
|
protected $project; |
|
22
|
|
|
/** @var object */ |
|
23
|
|
|
protected $responsible; |
|
24
|
|
|
|
|
25
|
|
|
const TYPE_FEATURE = 'US'; |
|
26
|
|
|
const TYPE_FEEDBACK = 'FB'; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @param string $name |
|
30
|
|
|
* @return FeatureModel |
|
31
|
|
|
*/ |
|
32
|
6 |
|
public function setName($name) { |
|
33
|
6 |
|
$this->name = $name; |
|
34
|
|
|
|
|
35
|
6 |
|
return $this; |
|
36
|
|
|
} |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @return string |
|
40
|
|
|
*/ |
|
41
|
5 |
|
public function getName() { |
|
42
|
5 |
|
return $this->name; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* @param string $slug |
|
47
|
|
|
* @return FeatureModel |
|
48
|
|
|
*/ |
|
49
|
6 |
|
public function setSlug($slug) { |
|
50
|
6 |
|
$this->slug = $slug; |
|
51
|
|
|
|
|
52
|
6 |
|
return $this; |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return string |
|
57
|
|
|
*/ |
|
58
|
4 |
|
public function getSlug() { |
|
59
|
4 |
|
return $this->slug; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @param string $description |
|
64
|
|
|
* @return FeatureModel |
|
65
|
|
|
*/ |
|
66
|
6 |
|
public function setDescription($description) { |
|
67
|
6 |
|
$this->description = $description; |
|
68
|
|
|
|
|
69
|
6 |
|
return $this; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @return string |
|
74
|
|
|
*/ |
|
75
|
3 |
|
public function getDescription() { |
|
76
|
3 |
|
return $this->description; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @param ProjectModel $project |
|
81
|
|
|
* @return FeatureModel |
|
82
|
|
|
*/ |
|
83
|
6 |
|
public function setProject(ProjectModel $project) { |
|
84
|
6 |
|
$this->project = $project; |
|
85
|
|
|
|
|
86
|
6 |
|
return $this; |
|
87
|
6 |
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @return FeatureModel |
|
91
|
|
|
*/ |
|
92
|
4 |
|
public function getProject() { |
|
93
|
4 |
|
return $this->project; |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* @param integer $status |
|
98
|
|
|
* @return FeatureModel |
|
99
|
|
|
*/ |
|
100
|
4 |
|
public function setStatus($status) { |
|
101
|
4 |
|
$this->status = $status; |
|
102
|
|
|
|
|
103
|
4 |
|
return $this; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @return integer |
|
108
|
|
|
*/ |
|
109
|
4 |
|
public function getStatus() { |
|
110
|
4 |
|
return $this->status; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
/** |
|
114
|
|
|
* @param UserInterface $responsible |
|
115
|
|
|
* @return FeatureModel |
|
116
|
|
|
*/ |
|
117
|
5 |
|
public function setResponsible(UserInterface $responsible = null) { |
|
118
|
5 |
|
$this->responsible = $responsible; |
|
119
|
|
|
|
|
120
|
5 |
|
return $this; |
|
121
|
5 |
|
} |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @return object |
|
125
|
|
|
*/ |
|
126
|
2 |
|
public function getResponsible() { |
|
127
|
2 |
|
return $this->responsible; |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* Set createdAt |
|
133
|
|
|
* |
|
134
|
|
|
* @param \DateTime $createdAt |
|
135
|
|
|
* |
|
136
|
|
|
* @return ProjectModel |
|
137
|
|
|
*/ |
|
138
|
4 |
|
public function setCreatedAt($createdAt) |
|
139
|
|
|
{ |
|
140
|
4 |
|
$this->createdAt = $createdAt; |
|
|
|
|
|
|
141
|
|
|
|
|
142
|
4 |
|
return $this; |
|
143
|
|
|
} |
|
144
|
|
|
|
|
145
|
|
|
/** |
|
146
|
|
|
* Get createdAt |
|
147
|
|
|
* |
|
148
|
|
|
* @return \DateTime |
|
149
|
|
|
*/ |
|
150
|
2 |
|
public function getCreatedAt() |
|
151
|
|
|
{ |
|
152
|
2 |
|
return $this->createdAt; |
|
153
|
|
|
} |
|
154
|
|
|
|
|
155
|
|
|
/** |
|
156
|
|
|
* Set updatedAt |
|
157
|
|
|
* |
|
158
|
|
|
* @param \DateTime $updatedAt |
|
159
|
|
|
* |
|
160
|
|
|
* @return ProjectModel |
|
161
|
|
|
*/ |
|
162
|
4 |
|
public function setUpdatedAt($updatedAt) |
|
163
|
|
|
{ |
|
164
|
4 |
|
$this->updatedAt = $updatedAt; |
|
165
|
|
|
|
|
166
|
4 |
|
return $this; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* Get updatedAt |
|
171
|
|
|
* |
|
172
|
|
|
* @return \DateTime |
|
173
|
|
|
*/ |
|
174
|
2 |
|
public function getUpdatedAt() |
|
175
|
|
|
{ |
|
176
|
2 |
|
return $this->updatedAt; |
|
177
|
|
|
} |
|
178
|
|
|
} |
|
179
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..