1 | <?php |
||
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) { |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 5 | public function getName() { |
|
44 | |||
45 | /** |
||
46 | * @param string $slug |
||
47 | * @return FeatureModel |
||
48 | */ |
||
49 | 6 | public function setSlug($slug) { |
|
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | 4 | public function getSlug() { |
|
61 | |||
62 | /** |
||
63 | * @param string $description |
||
64 | * @return FeatureModel |
||
65 | */ |
||
66 | 6 | public function setDescription($description) { |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 3 | public function getDescription() { |
|
78 | |||
79 | /** |
||
80 | * @param ProjectModel $project |
||
81 | * @return FeatureModel |
||
82 | */ |
||
83 | 6 | public function setProject(ProjectModel $project) { |
|
88 | |||
89 | /** |
||
90 | * @return FeatureModel |
||
91 | */ |
||
92 | 4 | public function getProject() { |
|
95 | |||
96 | /** |
||
97 | * @param integer $status |
||
98 | * @return FeatureModel |
||
99 | */ |
||
100 | 4 | public function setStatus($status) { |
|
105 | |||
106 | /** |
||
107 | * @return integer |
||
108 | */ |
||
109 | 4 | public function getStatus() { |
|
112 | |||
113 | /** |
||
114 | * @param UserInterface $responsible |
||
115 | * @return FeatureModel |
||
116 | */ |
||
117 | 5 | public function setResponsible(UserInterface $responsible = null) { |
|
122 | |||
123 | /** |
||
124 | * @return object |
||
125 | */ |
||
126 | 2 | public function getResponsible() { |
|
129 | |||
130 | |||
131 | /** |
||
132 | * Set createdAt |
||
133 | * |
||
134 | * @param \DateTime $createdAt |
||
135 | * |
||
136 | * @return ProjectModel |
||
137 | */ |
||
138 | 4 | public function setCreatedAt($createdAt) |
|
144 | |||
145 | /** |
||
146 | * Get createdAt |
||
147 | * |
||
148 | * @return \DateTime |
||
149 | */ |
||
150 | 2 | public function getCreatedAt() |
|
154 | |||
155 | /** |
||
156 | * Set updatedAt |
||
157 | * |
||
158 | * @param \DateTime $updatedAt |
||
159 | * |
||
160 | * @return ProjectModel |
||
161 | */ |
||
162 | 4 | public function setUpdatedAt($updatedAt) |
|
168 | |||
169 | /** |
||
170 | * Get updatedAt |
||
171 | * |
||
172 | * @return \DateTime |
||
173 | */ |
||
174 | 2 | public function getUpdatedAt() |
|
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..