chamilo /
chamilo-lms
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 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 | * CSurveyQuestionOption |
||
| 10 | * |
||
| 11 | * @ORM\Table( |
||
| 12 | * name="c_survey_question_option", |
||
| 13 | * indexes={ |
||
| 14 | * @ORM\Index(name="course", columns={"c_id"}) |
||
| 15 | * } |
||
| 16 | * ) |
||
| 17 | * @ORM\Entity |
||
| 18 | */ |
||
| 19 | View Code Duplication | class CSurveyQuestionOption |
|
|
0 ignored issues
–
show
|
|||
| 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
|
|||
| 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="question_option_id", type="integer") |
||
| 41 | */ |
||
| 42 | private $questionOptionId; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var integer |
||
| 46 | * |
||
| 47 | * @ORM\Column(name="question_id", type="integer", nullable=false) |
||
| 48 | */ |
||
| 49 | private $questionId; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var integer |
||
| 53 | * |
||
| 54 | * @ORM\Column(name="survey_id", type="integer", nullable=false) |
||
| 55 | */ |
||
| 56 | private $surveyId; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var string |
||
| 60 | * |
||
| 61 | * @ORM\Column(name="option_text", type="text", nullable=false) |
||
| 62 | */ |
||
| 63 | private $optionText; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @var integer |
||
| 67 | * |
||
| 68 | * @ORM\Column(name="sort", type="integer", nullable=false) |
||
| 69 | */ |
||
| 70 | private $sort; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @var integer |
||
| 74 | * |
||
| 75 | * @ORM\Column(name="value", type="integer", nullable=false) |
||
| 76 | */ |
||
| 77 | private $value; |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Set questionId |
||
| 81 | * |
||
| 82 | * @param integer $questionId |
||
| 83 | * @return CSurveyQuestionOption |
||
| 84 | */ |
||
| 85 | public function setQuestionId($questionId) |
||
| 86 | { |
||
| 87 | $this->questionId = $questionId; |
||
| 88 | |||
| 89 | return $this; |
||
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Get questionId |
||
| 94 | * |
||
| 95 | * @return integer |
||
| 96 | */ |
||
| 97 | public function getQuestionId() |
||
| 98 | { |
||
| 99 | return $this->questionId; |
||
| 100 | } |
||
| 101 | |||
| 102 | /** |
||
| 103 | * Set surveyId |
||
| 104 | * |
||
| 105 | * @param integer $surveyId |
||
| 106 | * @return CSurveyQuestionOption |
||
| 107 | */ |
||
| 108 | public function setSurveyId($surveyId) |
||
| 109 | { |
||
| 110 | $this->surveyId = $surveyId; |
||
| 111 | |||
| 112 | return $this; |
||
| 113 | } |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Get surveyId |
||
| 117 | * |
||
| 118 | * @return integer |
||
| 119 | */ |
||
| 120 | public function getSurveyId() |
||
| 121 | { |
||
| 122 | return $this->surveyId; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * Set optionText |
||
| 127 | * |
||
| 128 | * @param string $optionText |
||
| 129 | * @return CSurveyQuestionOption |
||
| 130 | */ |
||
| 131 | public function setOptionText($optionText) |
||
| 132 | { |
||
| 133 | $this->optionText = $optionText; |
||
| 134 | |||
| 135 | return $this; |
||
| 136 | } |
||
| 137 | |||
| 138 | /** |
||
| 139 | * Get optionText |
||
| 140 | * |
||
| 141 | * @return string |
||
| 142 | */ |
||
| 143 | public function getOptionText() |
||
| 144 | { |
||
| 145 | return $this->optionText; |
||
| 146 | } |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Set sort |
||
| 150 | * |
||
| 151 | * @param integer $sort |
||
| 152 | * @return CSurveyQuestionOption |
||
| 153 | */ |
||
| 154 | public function setSort($sort) |
||
| 155 | { |
||
| 156 | $this->sort = $sort; |
||
| 157 | |||
| 158 | return $this; |
||
| 159 | } |
||
| 160 | |||
| 161 | /** |
||
| 162 | * Get sort |
||
| 163 | * |
||
| 164 | * @return integer |
||
| 165 | */ |
||
| 166 | public function getSort() |
||
| 167 | { |
||
| 168 | return $this->sort; |
||
| 169 | } |
||
| 170 | |||
| 171 | /** |
||
| 172 | * Set value |
||
| 173 | * |
||
| 174 | * @param integer $value |
||
| 175 | * @return CSurveyQuestionOption |
||
| 176 | */ |
||
| 177 | public function setValue($value) |
||
| 178 | { |
||
| 179 | $this->value = $value; |
||
| 180 | |||
| 181 | return $this; |
||
| 182 | } |
||
| 183 | |||
| 184 | /** |
||
| 185 | * Get value |
||
| 186 | * |
||
| 187 | * @return integer |
||
| 188 | */ |
||
| 189 | public function getValue() |
||
| 190 | { |
||
| 191 | return $this->value; |
||
| 192 | } |
||
| 193 | |||
| 194 | /** |
||
| 195 | * Set questionOptionId |
||
| 196 | * |
||
| 197 | * @param integer $questionOptionId |
||
| 198 | * @return CSurveyQuestionOption |
||
| 199 | */ |
||
| 200 | public function setQuestionOptionId($questionOptionId) |
||
| 201 | { |
||
| 202 | $this->questionOptionId = $questionOptionId; |
||
| 203 | |||
| 204 | return $this; |
||
| 205 | } |
||
| 206 | |||
| 207 | /** |
||
| 208 | * Get questionOptionId |
||
| 209 | * |
||
| 210 | * @return integer |
||
| 211 | */ |
||
| 212 | public function getQuestionOptionId() |
||
| 213 | { |
||
| 214 | return $this->questionOptionId; |
||
| 215 | } |
||
| 216 | |||
| 217 | /** |
||
| 218 | * Set cId |
||
| 219 | * |
||
| 220 | * @param integer $cId |
||
| 221 | * @return CSurveyQuestionOption |
||
| 222 | */ |
||
| 223 | public function setCId($cId) |
||
| 224 | { |
||
| 225 | $this->cId = $cId; |
||
| 226 | |||
| 227 | return $this; |
||
| 228 | } |
||
| 229 | |||
| 230 | /** |
||
| 231 | * Get cId |
||
| 232 | * |
||
| 233 | * @return integer |
||
| 234 | */ |
||
| 235 | public function getCId() |
||
| 236 | { |
||
| 237 | return $this->cId; |
||
| 238 | } |
||
| 239 | } |
||
| 240 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.