Completed
Push — master ( bd22e5...ae5621 )
by Julito
12:43
created

CDocument::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CDocument.
10
 *
11
 * @ORM\Table(
12
 *  name="c_document",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CDocument
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="id", type="integer", nullable=true)
34
     */
35
    private $id;
36
37
    /**
38
     * @var int
39
     *
40
     * @ORM\Column(name="c_id", type="integer")
41
     */
42
    private $cId;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="path", type="string", length=255, nullable=false)
48
     */
49
    private $path;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="comment", type="text", nullable=true)
55
     */
56
    private $comment;
57
58
    /**
59
     * @var string
60
     *
61
     * @ORM\Column(name="title", type="string", length=255, nullable=true)
62
     */
63
    private $title;
64
65
    /**
66
     * @var string
67
     *
68
     * @ORM\Column(name="filetype", type="string", length=10, nullable=false)
69
     */
70
    private $filetype;
71
72
    /**
73
     * @var int
74
     *
75
     * @ORM\Column(name="size", type="integer", nullable=false)
76
     */
77
    private $size;
78
79
    /**
80
     * @var bool
81
     *
82
     * @ORM\Column(name="readonly", type="boolean", nullable=false)
83
     */
84
    private $readonly;
85
86
    /**
87
     * @var int
88
     *
89
     * @ORM\Column(name="session_id", type="integer", nullable=false)
90
     */
91
    private $sessionId;
92
93
    /**
94
     * CDocument constructor.
95
     */
96
    public function __construct()
97
    {
98
    }
99
100
    /**
101
     * Set path.
102
     *
103
     * @param string $path
104
     *
105
     * @return CDocument
106
     */
107
    public function setPath($path)
108
    {
109
        $this->path = $path;
110
111
        return $this;
112
    }
113
114
    /**
115
     * Get path.
116
     *
117
     * @return string
118
     */
119
    public function getPath()
120
    {
121
        return $this->path;
122
    }
123
124
    /**
125
     * Set comment.
126
     *
127
     * @param string $comment
128
     *
129
     * @return CDocument
130
     */
131
    public function setComment($comment)
132
    {
133
        $this->comment = $comment;
134
135
        return $this;
136
    }
137
138
    /**
139
     * Get comment.
140
     *
141
     * @return string
142
     */
143
    public function getComment()
144
    {
145
        return $this->comment;
146
    }
147
148
    /**
149
     * Set title.
150
     *
151
     * @param string $title
152
     *
153
     * @return CDocument
154
     */
155
    public function setTitle($title)
156
    {
157
        $this->title = $title;
158
159
        return $this;
160
    }
161
162
    /**
163
     * Get title.
164
     *
165
     * @return string
166
     */
167
    public function getTitle()
168
    {
169
        return $this->title;
170
    }
171
172
    /**
173
     * Set filetype.
174
     *
175
     * @param string $filetype
176
     *
177
     * @return CDocument
178
     */
179
    public function setFiletype($filetype)
180
    {
181
        $this->filetype = $filetype;
182
183
        return $this;
184
    }
185
186
    /**
187
     * Get filetype.
188
     *
189
     * @return string
190
     */
191
    public function getFiletype()
192
    {
193
        return $this->filetype;
194
    }
195
196
    /**
197
     * Set size.
198
     *
199
     * @param int $size
200
     *
201
     * @return CDocument
202
     */
203
    public function setSize($size)
204
    {
205
        $this->size = $size;
206
207
        return $this;
208
    }
209
210
    /**
211
     * Get size.
212
     *
213
     * @return int
214
     */
215
    public function getSize()
216
    {
217
        return $this->size;
218
    }
219
220
    /**
221
     * Set readonly.
222
     *
223
     * @param bool $readonly
224
     *
225
     * @return CDocument
226
     */
227
    public function setReadonly($readonly)
228
    {
229
        $this->readonly = $readonly;
230
231
        return $this;
232
    }
233
234
    /**
235
     * Get readonly.
236
     *
237
     * @return bool
238
     */
239
    public function getReadonly()
240
    {
241
        return $this->readonly;
242
    }
243
244
    /**
245
     * Set sessionId.
246
     *
247
     * @param int $sessionId
248
     *
249
     * @return CDocument
250
     */
251
    public function setSessionId($sessionId)
252
    {
253
        $this->sessionId = $sessionId;
254
255
        return $this;
256
    }
257
258
    /**
259
     * Get sessionId.
260
     *
261
     * @return int
262
     */
263
    public function getSessionId()
264
    {
265
        return $this->sessionId;
266
    }
267
268
    /**
269
     * Set id.
270
     *
271
     * @param int $id
272
     *
273
     * @return CDocument
274
     */
275
    public function setId($id)
276
    {
277
        $this->id = $id;
278
279
        return $this;
280
    }
281
282
    /**
283
     * Get id.
284
     *
285
     * @return int
286
     */
287
    public function getId()
288
    {
289
        return $this->id;
290
    }
291
292
    /**
293
     * Set cId.
294
     *
295
     * @param int $cId
296
     *
297
     * @return CDocument
298
     */
299
    public function setCId($cId)
300
    {
301
        $this->cId = $cId;
302
303
        return $this;
304
    }
305
306
    /**
307
     * Get cId.
308
     *
309
     * @return int
310
     */
311
    public function getCId()
312
    {
313
        return $this->cId;
314
    }
315
316
    /**
317
     * @return int
318
     */
319
    public function getIid()
320
    {
321
        return $this->iid;
322
    }
323
324
    /**
325
     * @param int $iid
326
     *
327
     * @return CDocument
328
     */
329
    public function setIid($iid)
330
    {
331
        $this->iid = $iid;
332
333
        return $this;
334
    }
335
}
336