Passed
Push — 1.11.x ( 8c9caf...15023c )
by Angel Fernando Quiroz
14:45
created

CGlossary::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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
 * CGlossary.
10
 *
11
 * @ORM\Table(
12
 *  name="c_glossary",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"}),
15
 *      @ORM\Index(name="session_id", columns={"session_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CGlossary
21
{
22
    /**
23
     * @var int
24
     *
25
     * @ORM\Column(name="iid", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    protected $iid;
30
31
    /**
32
     * @var int
33
     *
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    protected $cId;
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="glossary_id", type="integer")
42
     */
43
    protected $glossaryId;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
49
     */
50
    protected $name;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="description", type="text", nullable=false)
56
     */
57
    protected $description;
58
59
    /**
60
     * @var int
61
     *
62
     * @ORM\Column(name="display_order", type="integer", nullable=true)
63
     */
64
    protected $displayOrder;
65
66
    /**
67
     * @var int
68
     *
69
     * @ORM\Column(name="session_id", type="integer", nullable=true)
70
     */
71
    protected $sessionId;
72
73
    /**
74
     * Set name.
75
     *
76
     * @param string $name
77
     *
78
     * @return CGlossary
79
     */
80
    public function setName($name)
81
    {
82
        $this->name = $name;
83
84
        return $this;
85
    }
86
87
    /**
88
     * Get name.
89
     *
90
     * @return string
91
     */
92
    public function getName()
93
    {
94
        return $this->name;
95
    }
96
97
    /**
98
     * Set description.
99
     *
100
     * @param string $description
101
     *
102
     * @return CGlossary
103
     */
104
    public function setDescription($description)
105
    {
106
        $this->description = $description;
107
108
        return $this;
109
    }
110
111
    /**
112
     * Get description.
113
     *
114
     * @return string
115
     */
116
    public function getDescription()
117
    {
118
        return $this->description;
119
    }
120
121
    /**
122
     * Set displayOrder.
123
     *
124
     * @param int $displayOrder
125
     *
126
     * @return CGlossary
127
     */
128
    public function setDisplayOrder($displayOrder)
129
    {
130
        $this->displayOrder = $displayOrder;
131
132
        return $this;
133
    }
134
135
    /**
136
     * Get displayOrder.
137
     *
138
     * @return int
139
     */
140
    public function getDisplayOrder()
141
    {
142
        return $this->displayOrder;
143
    }
144
145
    /**
146
     * Set sessionId.
147
     *
148
     * @param int $sessionId
149
     *
150
     * @return CGlossary
151
     */
152
    public function setSessionId($sessionId)
153
    {
154
        $this->sessionId = $sessionId;
155
156
        return $this;
157
    }
158
159
    /**
160
     * Get sessionId.
161
     *
162
     * @return int
163
     */
164
    public function getSessionId()
165
    {
166
        return $this->sessionId;
167
    }
168
169
    /**
170
     * Set glossaryId.
171
     *
172
     * @param int $glossaryId
173
     *
174
     * @return CGlossary
175
     */
176
    public function setGlossaryId($glossaryId)
177
    {
178
        $this->glossaryId = $glossaryId;
179
180
        return $this;
181
    }
182
183
    /**
184
     * Get glossaryId.
185
     *
186
     * @return int
187
     */
188
    public function getGlossaryId()
189
    {
190
        return $this->glossaryId;
191
    }
192
193
    /**
194
     * Set cId.
195
     *
196
     * @param int $cId
197
     *
198
     * @return CGlossary
199
     */
200
    public function setCId($cId)
201
    {
202
        $this->cId = $cId;
203
204
        return $this;
205
    }
206
207
    /**
208
     * Get cId.
209
     *
210
     * @return int
211
     */
212
    public function getCId()
213
    {
214
        return $this->cId;
215
    }
216
217
    public function getIid(): int
218
    {
219
        return $this->iid;
220
    }
221
}
222