Test Setup Failed
Branch master (be722e)
by Yannick
75:49 queued 20:48
created

CSurveyGroup::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
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
 * CSurveyGroup
10
 *
11
 * @ORM\Table(
12
 *  name="c_survey_group",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CSurveyGroup
20
{
21
    /**
22
     * @var integer
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
0 ignored issues
show
Unused Code introduced by
The property $iid is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
29
30
    /**
31
     * @var integer
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    private $cId;
36
37
    /**
38
     * @var integer
39
     *
40
     * @ORM\Column(name="id", type="integer", nullable=true)
41
     */
42
    private $id;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="name", type="string", length=20, nullable=false)
48
     */
49
    private $name;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="description", type="string", length=255, nullable=false)
55
     */
56
    private $description;
57
58
    /**
59
     * @var integer
60
     *
61
     * @ORM\Column(name="survey_id", type="integer", nullable=false)
62
     */
63
    private $surveyId;
64
65
    /**
66
     * Set name
67
     *
68
     * @param string $name
69
     * @return CSurveyGroup
70
     */
71
    public function setName($name)
72
    {
73
        $this->name = $name;
74
75
        return $this;
76
    }
77
78
    /**
79
     * Get name
80
     *
81
     * @return string
82
     */
83
    public function getName()
84
    {
85
        return $this->name;
86
    }
87
88
    /**
89
     * Set description
90
     *
91
     * @param string $description
92
     * @return CSurveyGroup
93
     */
94
    public function setDescription($description)
95
    {
96
        $this->description = $description;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Get description
103
     *
104
     * @return string
105
     */
106
    public function getDescription()
107
    {
108
        return $this->description;
109
    }
110
111
    /**
112
     * Set surveyId
113
     *
114
     * @param integer $surveyId
115
     * @return CSurveyGroup
116
     */
117
    public function setSurveyId($surveyId)
118
    {
119
        $this->surveyId = $surveyId;
120
121
        return $this;
122
    }
123
124
    /**
125
     * Get surveyId
126
     *
127
     * @return integer
128
     */
129
    public function getSurveyId()
130
    {
131
        return $this->surveyId;
132
    }
133
134
    /**
135
     * Set id
136
     *
137
     * @param integer $id
138
     * @return CSurveyGroup
139
     */
140
    public function setId($id)
141
    {
142
        $this->id = $id;
143
144
        return $this;
145
    }
146
147
    /**
148
     * Get id
149
     *
150
     * @return integer
151
     */
152
    public function getId()
153
    {
154
        return $this->id;
155
    }
156
157
    /**
158
     * Set cId
159
     *
160
     * @param integer $cId
161
     * @return CSurveyGroup
162
     */
163
    public function setCId($cId)
164
    {
165
        $this->cId = $cId;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get cId
172
     *
173
     * @return integer
174
     */
175
    public function getCId()
176
    {
177
        return $this->cId;
178
    }
179
}
180