Passed
Pull Request — 1.11.x (#3871)
by Angel Fernando Quiroz
10:43
created

CQuizQuestionOption::getIid()   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
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CQuizQuestionOption.
10
 *
11
 * @ORM\Table(
12
 *  name="c_quiz_question_option",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CQuizQuestionOption
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    protected $iid;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    protected $cId;
36
37
    /**
38
     * @var int
39
     * @deprecated Now using iid
40
     * @ORM\Column(name="id", type="integer", nullable=true)
41
     */
42
    protected $id;
43
44
    /**
45
     * @var int
46
     *
47
     * @ORM\Column(name="question_id", type="integer", nullable=false)
48
     */
49
    protected $questionId;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="name", type="string", length=255, nullable=true)
55
     */
56
    protected $name;
57
58
    /**
59
     * @var int
60
     *
61
     * @ORM\Column(name="position", type="integer", nullable=false)
62
     */
63
    protected $position;
64
65
    /**
66
     * Set questionId.
67
     *
68
     * @param int $questionId
69
     *
70
     * @return CQuizQuestionOption
71
     */
72
    public function setQuestionId($questionId)
73
    {
74
        $this->questionId = $questionId;
75
76
        return $this;
77
    }
78
79
    /**
80
     * Get questionId.
81
     *
82
     * @return int
83
     */
84
    public function getQuestionId()
85
    {
86
        return $this->questionId;
87
    }
88
89
    /**
90
     * Set name.
91
     *
92
     * @param string $name
93
     *
94
     * @return CQuizQuestionOption
95
     */
96
    public function setName($name)
97
    {
98
        $this->name = $name;
99
100
        return $this;
101
    }
102
103
    /**
104
     * Get name.
105
     *
106
     * @return string
107
     */
108
    public function getName()
109
    {
110
        return $this->name;
111
    }
112
113
    /**
114
     * Set position.
115
     *
116
     * @param int $position
117
     *
118
     * @return CQuizQuestionOption
119
     */
120
    public function setPosition($position)
121
    {
122
        $this->position = $position;
123
124
        return $this;
125
    }
126
127
    /**
128
     * Get position.
129
     *
130
     * @return int
131
     */
132
    public function getPosition()
133
    {
134
        return $this->position;
135
    }
136
137
    /**
138
     * Set id.
139
     *
140
     * @param int $iid
141
     *
142
     * @return CQuizQuestionOption
143
     */
144
    public function setId($iid)
145
    {
146
        $this->iid = $iid;
147
148
        return $this;
149
    }
150
151
    /**
152
     * Get id.
153
     *
154
     * @return int
155
     */
156
    public function getId()
157
    {
158
        return $this->iid;
159
    }
160
161
    /**
162
     * Set cId.
163
     *
164
     * @param int $cId
165
     *
166
     * @return CQuizQuestionOption
167
     */
168
    public function setCId($cId)
169
    {
170
        $this->cId = $cId;
171
172
        return $this;
173
    }
174
175
    /**
176
     * Get cId.
177
     *
178
     * @return int
179
     */
180
    public function getCId()
181
    {
182
        return $this->cId;
183
    }
184
}
185