Completed
Push — develop ( 651cee...38c493 )
by Axel
7s
created

FeedbackModel::getAuthor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Developtech\AgilityBundle\Model;
4
5
use Symfony\Component\Security\Core\User\UserInterface;
6
7
class FeedbackModel
8
{
9
    /** @var string */
10
    protected $name;
11
    /** @var string */
12
    protected $slug;
13
    /** @var string */
14
    protected $description;
15
    /** @var int */
16
    protected $status;
17
    /** @var \DateTime*/
18
    protected $createdAt;
19
    /** @var \DateTime */
20
    protected $updatedAt;
21
22
    /**
23
     * @var ProjectModel
24
     *
25
     * This field must be mapped by the end-user to the Project extended class
26
     */
27
    protected $project;
28
29
    /**
30
     * @var UserInterface
31
     *
32
     * This field must be mapped by the end-user
33
     */
34
    protected $author;
35
36
    /**
37
     * @var UserInterface
38
     *
39
     * This field must be mapped by the end-user
40
     */
41
    protected $developer;
42
43
    const STATUS_OPEN = 0;
44
    const STATUS_TO_DO = 1;
45
    const STATUS_IN_PROGRESS = 2;
46
    const STATUS_TO_VALIDATE = 3;
47
    const STATUS_DONE = 4;
48
    const STATUS_CLOSED = 5;
49
50
    /**
51
     * Set name
52
     *
53
     * @param string $name
54
     *
55
     * @return FeedbackModel
56
     */
57 3
    public function setName($name)
58
    {
59 3
        $this->name = $name;
60
61 3
        return $this;
62
    }
63
64
    /**
65
     * Get name
66
     *
67
     * @return string
68
     */
69 1
    public function getName()
70
    {
71 1
        return $this->name;
72
    }
73
74
    /**
75
     * Set slug
76
     *
77
     * @param string $slug
78
     *
79
     * @return FeedbackModel
80
     */
81 3
    public function setSlug($slug)
82
    {
83 3
        $this->slug = $slug;
84
85 3
        return $this;
86
    }
87
88
    /**
89
     * Get slug
90
     *
91
     * @return string
92
     */
93 1
    public function getSlug()
94
    {
95 1
        return $this->slug;
96
    }
97
98
    /**
99
     * Set description
100
     *
101
     * @param string $description
102
     *
103
     * @return FeedbackModel
104
     */
105 3
    public function setDescription($description)
106
    {
107 3
        $this->description = $description;
108
109 3
        return $this;
110
    }
111
112
    /**
113
     * Get description
114
     *
115
     * @return string
116
     */
117 1
    public function getDescription()
118
    {
119 1
        return $this->description;
120
    }
121
122
    /**
123
     * Set project
124
     *
125
     * @param ProjectModel $project
126
     *
127
     * @return FeedbackModel
128
     */
129 3
    public function setProject(ProjectModel $project)
130
    {
131 3
        $this->project = $project;
132
133 3
        return $this;
134 3
    }
135
136
    /**
137
     * Get project
138
     *
139
     * @return ProjectModel
140
     */
141 1
    public function getProject()
142
    {
143 1
        return $this->project;
144
    }
145
146
    /**
147
     * Set author
148
     *
149
     * @param UserInterface $author
150
     *
151
     * @return FeedbackModel
152
     */
153 3
    public function setAuthor(UserInterface $author)
154
    {
155 3
        $this->author = $author;
156
157 3
        return $this;
158 3
    }
159
160
    /**
161
     * Get author
162
     *
163
     * @return UserInterface
164
     */
165 1
    public function getAuthor()
166
    {
167 1
        return $this->author;
168
    }
169
170
    /**
171
     * Set status
172
     *
173
     * @param integer $status
174
     *
175
     * @return FeedbackModel
176
     */
177 2
    public function setStatus($status)
178
    {
179 2
        $this->status = $status;
180
181 2
        return $this;
182
    }
183
184
    /**
185
     * Get status
186
     *
187
     * @return int
188
     */
189 1
    public function getStatus()
190
    {
191 1
        return $this->status;
192
    }
193
194
    /**
195
     * Set developer
196
     *
197
     * @param UserInterface $developer
198
     *
199
     * @return FeedbackModel
200
     */
201 2
    public function setDeveloper(UserInterface $developer)
202
    {
203 2
        $this->developer = $developer;
204
205 2
        return $this;
206 2
    }
207
208
    /**
209
     * Get developer
210
     *
211
     * @return UserInterface
212
     */
213
    public function getDeveloper()
214
    {
215
        return $this->developer;
216
    }
217
218
    /**
219
     * Set createdAt
220
     *
221
     * @param \DateTime $createdAt
222
     *
223
     * @return FeedbackModel
224
     */
225 2
    public function setCreatedAt($createdAt)
226
    {
227 2
        $this->createdAt = $createdAt;
0 ignored issues
show
Documentation Bug introduced by
It seems like $createdAt of type object<DateTime> is incompatible with the declared type object<DateTime*/> of property $createdAt.

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..

Loading history...
228
229 2
        return $this;
230
    }
231
232
    /**
233
     * Get createdAt
234
     *
235
     * @return \DateTime
236
     */
237
    public function getCreatedAt()
238
    {
239
        return $this->createdAt;
240
    }
241
242
    /**
243
     * Set updatedAt
244
     *
245
     * @param \DateTime $updatedAt
246
     *
247
     * @return FeedbackModel
248
     */
249 2
    public function setUpdatedAt($updatedAt)
250
    {
251 2
        $this->updatedAt = $updatedAt;
252
253 2
        return $this;
254
    }
255
256
    /**
257
     * Get updatedAt
258
     *
259
     * @return \DateTime
260
     */
261
    public function getUpdatedAt()
262
    {
263
        return $this->updatedAt;
264
    }
265
}
266