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 | * CStudentPublicationComment |
||
| 10 | * |
||
| 11 | * @ORM\Table( |
||
| 12 | * name="c_student_publication_comment", |
||
| 13 | * indexes={ |
||
| 14 | * @ORM\Index(name="course", columns={"c_id"}), |
||
| 15 | * @ORM\Index(name="user", columns={"user_id"}), |
||
| 16 | * @ORM\Index(name="work", columns={"work_id"}) |
||
| 17 | * } |
||
| 18 | * ) |
||
| 19 | * @ORM\Entity |
||
| 20 | */ |
||
| 21 | class CStudentPublicationComment |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var integer |
||
| 25 | * |
||
| 26 | * @ORM\Column(name="iid", type="integer") |
||
| 27 | * @ORM\Id |
||
| 28 | * @ORM\GeneratedValue |
||
| 29 | */ |
||
| 30 | private $iid; |
||
|
0 ignored issues
–
show
|
|||
| 31 | |||
| 32 | /** |
||
| 33 | * @var integer |
||
| 34 | * |
||
| 35 | * @ORM\Column(name="c_id", type="integer") |
||
| 36 | */ |
||
| 37 | private $cId; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var integer |
||
| 41 | * |
||
| 42 | * @ORM\Column(name="id", type="integer", nullable=true) |
||
| 43 | */ |
||
| 44 | private $id; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var integer |
||
| 48 | * |
||
| 49 | * @ORM\Column(name="work_id", type="integer", nullable=false) |
||
| 50 | */ |
||
| 51 | private $workId; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var string |
||
| 55 | * |
||
| 56 | * @ORM\Column(name="comment", type="text", nullable=true) |
||
| 57 | */ |
||
| 58 | private $comment; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var string |
||
| 62 | * |
||
| 63 | * @ORM\Column(name="file", type="string", length=255, nullable=true) |
||
| 64 | */ |
||
| 65 | private $file; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @var integer |
||
| 69 | * |
||
| 70 | * @ORM\Column(name="user_id", type="integer", nullable=false) |
||
| 71 | */ |
||
| 72 | private $userId; |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @var \DateTime |
||
| 76 | * |
||
| 77 | * @ORM\Column(name="sent_at", type="datetime", nullable=false) |
||
| 78 | */ |
||
| 79 | private $sentAt; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Set workId |
||
| 83 | * |
||
| 84 | * @param integer $workId |
||
| 85 | * @return CStudentPublicationComment |
||
| 86 | */ |
||
| 87 | public function setWorkId($workId) |
||
| 88 | { |
||
| 89 | $this->workId = $workId; |
||
| 90 | |||
| 91 | return $this; |
||
| 92 | } |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Get workId |
||
| 96 | * |
||
| 97 | * @return integer |
||
| 98 | */ |
||
| 99 | public function getWorkId() |
||
| 100 | { |
||
| 101 | return $this->workId; |
||
| 102 | } |
||
| 103 | |||
| 104 | /** |
||
| 105 | * Set cId |
||
| 106 | * |
||
| 107 | * @param integer $cId |
||
| 108 | * @return CStudentPublicationComment |
||
| 109 | */ |
||
| 110 | public function setCId($cId) |
||
| 111 | { |
||
| 112 | $this->cId = $cId; |
||
| 113 | |||
| 114 | return $this; |
||
| 115 | } |
||
| 116 | |||
| 117 | /** |
||
| 118 | * Get cId |
||
| 119 | * |
||
| 120 | * @return integer |
||
| 121 | */ |
||
| 122 | public function getCId() |
||
| 123 | { |
||
| 124 | return $this->cId; |
||
| 125 | } |
||
| 126 | |||
| 127 | /** |
||
| 128 | * Set comment |
||
| 129 | * |
||
| 130 | * @param string $comment |
||
| 131 | * @return CStudentPublicationComment |
||
| 132 | */ |
||
| 133 | public function setComment($comment) |
||
| 134 | { |
||
| 135 | $this->comment = $comment; |
||
| 136 | |||
| 137 | return $this; |
||
| 138 | } |
||
| 139 | |||
| 140 | /** |
||
| 141 | * Get comment |
||
| 142 | * |
||
| 143 | * @return string |
||
| 144 | */ |
||
| 145 | public function getComment() |
||
| 146 | { |
||
| 147 | return $this->comment; |
||
| 148 | } |
||
| 149 | |||
| 150 | /** |
||
| 151 | * Set file |
||
| 152 | * |
||
| 153 | * @param string $file |
||
| 154 | * @return CStudentPublicationComment |
||
| 155 | */ |
||
| 156 | public function setFile($file) |
||
| 157 | { |
||
| 158 | $this->file = $file; |
||
| 159 | |||
| 160 | return $this; |
||
| 161 | } |
||
| 162 | |||
| 163 | /** |
||
| 164 | * Get file |
||
| 165 | * |
||
| 166 | * @return string |
||
| 167 | */ |
||
| 168 | public function getFile() |
||
| 169 | { |
||
| 170 | return $this->file; |
||
| 171 | } |
||
| 172 | |||
| 173 | /** |
||
| 174 | * Set userId |
||
| 175 | * |
||
| 176 | * @param integer $userId |
||
| 177 | * @return CStudentPublicationComment |
||
| 178 | */ |
||
| 179 | public function setUserId($userId) |
||
| 180 | { |
||
| 181 | $this->userId = $userId; |
||
| 182 | |||
| 183 | return $this; |
||
| 184 | } |
||
| 185 | |||
| 186 | /** |
||
| 187 | * Get userId |
||
| 188 | * |
||
| 189 | * @return integer |
||
| 190 | */ |
||
| 191 | public function getUserId() |
||
| 192 | { |
||
| 193 | return $this->userId; |
||
| 194 | } |
||
| 195 | |||
| 196 | /** |
||
| 197 | * Set sentAt |
||
| 198 | * |
||
| 199 | * @param \DateTime $sentAt |
||
| 200 | * @return CStudentPublicationComment |
||
| 201 | */ |
||
| 202 | public function setSentAt($sentAt) |
||
| 203 | { |
||
| 204 | $this->sentAt = $sentAt; |
||
| 205 | |||
| 206 | return $this; |
||
| 207 | } |
||
| 208 | |||
| 209 | /** |
||
| 210 | * Get sentAt |
||
| 211 | * |
||
| 212 | * @return \DateTime |
||
| 213 | */ |
||
| 214 | public function getSentAt() |
||
| 215 | { |
||
| 216 | return $this->sentAt; |
||
| 217 | } |
||
| 218 | |||
| 219 | /** |
||
| 220 | * Get id |
||
| 221 | * |
||
| 222 | * @return integer |
||
| 223 | */ |
||
| 224 | public function getId() |
||
| 225 | { |
||
| 226 | return $this->id; |
||
| 227 | } |
||
| 228 | } |
||
| 229 |
This check marks private properties in classes that are never used. Those properties can be removed.