Completed
Pull Request — master (#3464)
by Julito
14:18 queued 01:15
created

SequenceValue::getUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * Class Sequence.
11
 *
12
 * @ORM\Table(name="sequence_value")
13
 * @ORM\Entity
14
 */
15
class SequenceValue
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue()
23
     */
24
    protected $id;
25
26
    /**
27
     * @var User
28
     * @ORM\ManyToOne (
29
     *    targetEntity="Chamilo\CoreBundle\Entity\User",
30
     *    inversedBy="sequenceValues"
31
     * )
32
     * @ORM\JoinColumn(
33
     *    name="user_id",
34
     *    referencedColumnName="id",
35
     *    onDelete="CASCADE"
36
     * )
37
     */
38
    protected $user;
39
40
    /**
41
     * Get user.
42
     *
43
     */
44
    public function getUser(): User
45
    {
46
        return $this->user;
47
    }
48
49
    /**
50
     * Set user.
51
     *
52
     */
53
    public function setUser($user)
54
    {
55
        $this->user = $user;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @ORM\ManyToOne(targetEntity="SequenceRowEntity")
62
     * @ORM\JoinColumn(name="sequence_row_entity_id", referencedColumnName="id")
63
     */
64
    protected $entity;
65
66
    /**
67
     * @var int
68
     *
69
     * @ORM\Column(name="advance", type="float")
70
     */
71
    protected $advance;
72
73
    /**
74
     * @var int
75
     *
76
     * @ORM\Column(name="complete_items", type="integer")
77
     */
78
    protected $completeItems;
79
80
    /**
81
     * @var int
82
     *
83
     * @ORM\Column(name="total_items", type="integer")
84
     */
85
    protected $totalItems;
86
87
    /**
88
     * @var int
89
     *
90
     * @ORM\Column(name="success", type="boolean")
91
     */
92
    protected $success;
93
94
    /**
95
     * @var \DateTime
96
     *
97
     * @ORM\Column(name="success_date", type="datetime", nullable=true)
98
     */
99
    protected $successDate;
100
101
    /**
102
     * @var int
103
     *
104
     * @ORM\Column(name="available", type="boolean")
105
     */
106
    protected $available;
107
108
    /**
109
     * @var \DateTime
110
     *
111
     * @ORM\Column(name="available_start_date", type="datetime", nullable=true)
112
     */
113
    protected $availableStartDate;
114
115
    /**
116
     * @var \DateTime
117
     *
118
     * @ORM\Column(name="available_end_date", type="datetime", nullable=true)
119
     */
120
    protected $availableEndDate;
121
122
    /**
123
     * Get id.
124
     *
125
     * @return int
126
     */
127
    public function getId()
128
    {
129
        return $this->id;
130
    }
131
132
    public function getEntity()
133
    {
134
        return $this->entity;
135
    }
136
137
    /**
138
     * @return SequenceValue
139
     */
140
    public function setEntity($entity)
141
    {
142
        $this->entity = $entity;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @return int
149
     */
150
    public function getAdvance()
151
    {
152
        return $this->advance;
153
    }
154
155
    /**
156
     * @param int $advance
157
     *
158
     * @return SequenceValue
159
     */
160
    public function setAdvance($advance)
161
    {
162
        $this->advance = $advance;
163
164
        return $this;
165
    }
166
167
    /**
168
     * @return int
169
     */
170
    public function getCompleteItems()
171
    {
172
        return $this->completeItems;
173
    }
174
175
    /**
176
     * @param int $completeItems
177
     *
178
     * @return SequenceValue
179
     */
180
    public function setCompleteItems($completeItems)
181
    {
182
        $this->completeItems = $completeItems;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @return int
189
     */
190
    public function getTotalItems()
191
    {
192
        return $this->totalItems;
193
    }
194
195
    /**
196
     * @param int $totalItems
197
     *
198
     * @return SequenceValue
199
     */
200
    public function setTotalItems($totalItems)
201
    {
202
        $this->totalItems = $totalItems;
203
204
        return $this;
205
    }
206
207
    /**
208
     * @return int
209
     */
210
    public function getSuccess()
211
    {
212
        return $this->success;
213
    }
214
215
    /**
216
     * @param int $success
217
     *
218
     * @return SequenceValue
219
     */
220
    public function setSuccess($success)
221
    {
222
        $this->success = $success;
223
224
        return $this;
225
    }
226
227
    /**
228
     * @return \DateTime
229
     */
230
    public function getSuccessDate()
231
    {
232
        return $this->successDate;
233
    }
234
235
    /**
236
     * @param \DateTime $successDate
237
     *
238
     * @return SequenceValue
239
     */
240
    public function setSuccessDate($successDate)
241
    {
242
        $this->successDate = $successDate;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @return int
249
     */
250
    public function getAvailable()
251
    {
252
        return $this->available;
253
    }
254
255
    /**
256
     * @param int $available
257
     *
258
     * @return SequenceValue
259
     */
260
    public function setAvailable($available)
261
    {
262
        $this->available = $available;
263
264
        return $this;
265
    }
266
267
    /**
268
     * @return \DateTime
269
     */
270
    public function getAvailableStartDate()
271
    {
272
        return $this->availableStartDate;
273
    }
274
275
    /**
276
     * @param \DateTime $availableStartDate
277
     *
278
     * @return SequenceValue
279
     */
280
    public function setAvailableStartDate($availableStartDate)
281
    {
282
        $this->availableStartDate = $availableStartDate;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @return \DateTime
289
     */
290
    public function getAvailableEndDate()
291
    {
292
        return $this->availableEndDate;
293
    }
294
295
    /**
296
     * @param \DateTime $availableEndDate
297
     *
298
     * @return SequenceValue
299
     */
300
    public function setAvailableEndDate($availableEndDate)
301
    {
302
        $this->availableEndDate = $availableEndDate;
303
304
        return $this;
305
    }
306
}
307