Completed
Push — master ( c9546d...95f607 )
by Julito
09:41
created

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