Passed
Push — master ( 708b46...c08ace )
by Julito
09:46
created

CForumThreadQualify::setSessionId()   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
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CourseBundle\Entity;
8
9
use DateTime;
10
use Doctrine\ORM\Mapping as ORM;
11
12
/**
13
 * CForumThreadQualify.
14
 *
15
 * @ORM\Table(
16
 *  name="c_forum_thread_qualify",
17
 *  indexes={
18
 *      @ORM\Index(name="course", columns={"c_id"}),
19
 *      @ORM\Index(name="user_id", columns={"user_id", "thread_id"})
20
 *  }
21
 * )
22
 * @ORM\Entity
23
 */
24
class CForumThreadQualify
25
{
26
    /**
27
     * @ORM\Column(name="iid", type="integer")
28
     * @ORM\Id
29
     * @ORM\GeneratedValue
30
     */
31
    protected int $iid;
32
33
    /**
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    protected int $cId;
37
38
    /**
39
     * @ORM\Column(name="user_id", type="integer", nullable=false)
40
     */
41
    protected int $userId;
42
43
    /**
44
     * @ORM\Column(name="thread_id", type="integer", nullable=false)
45
     */
46
    protected int $threadId;
47
48
    /**
49
     * @ORM\Column(name="qualify", type="float", precision=6, scale=2, nullable=false)
50
     */
51
    protected float $qualify;
52
53
    /**
54
     * @ORM\Column(name="qualify_user_id", type="integer", nullable=true)
55
     */
56
    protected int $qualifyUserId;
57
58
    /**
59
     * @ORM\Column(name="qualify_time", type="datetime", nullable=true)
60
     */
61
    protected DateTime $qualifyTime;
62
63
    /**
64
     * Set userId.
65
     *
66
     * @param int $userId
67
     *
68
     * @return CForumThreadQualify
69
     */
70
    public function setUserId($userId)
71
    {
72
        $this->userId = $userId;
73
74
        return $this;
75
    }
76
77
    /**
78
     * Get userId.
79
     *
80
     * @return int
81
     */
82
    public function getUserId()
83
    {
84
        return $this->userId;
85
    }
86
87
    /**
88
     * Set threadId.
89
     *
90
     * @param int $threadId
91
     *
92
     * @return CForumThreadQualify
93
     */
94
    public function setThreadId($threadId)
95
    {
96
        $this->threadId = $threadId;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Get threadId.
103
     *
104
     * @return int
105
     */
106
    public function getThreadId()
107
    {
108
        return $this->threadId;
109
    }
110
111
    /**
112
     * Set qualify.
113
     *
114
     * @param float $qualify
115
     *
116
     * @return CForumThreadQualify
117
     */
118
    public function setQualify($qualify)
119
    {
120
        $this->qualify = $qualify;
121
122
        return $this;
123
    }
124
125
    /**
126
     * Get qualify.
127
     *
128
     * @return float
129
     */
130
    public function getQualify()
131
    {
132
        return $this->qualify;
133
    }
134
135
    /**
136
     * Set qualifyUserId.
137
     *
138
     * @param int $qualifyUserId
139
     *
140
     * @return CForumThreadQualify
141
     */
142
    public function setQualifyUserId($qualifyUserId)
143
    {
144
        $this->qualifyUserId = $qualifyUserId;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Get qualifyUserId.
151
     *
152
     * @return int
153
     */
154
    public function getQualifyUserId()
155
    {
156
        return $this->qualifyUserId;
157
    }
158
159
    /**
160
     * Set qualifyTime.
161
     *
162
     * @param DateTime $qualifyTime
163
     *
164
     * @return CForumThreadQualify
165
     */
166
    public function setQualifyTime($qualifyTime)
167
    {
168
        $this->qualifyTime = $qualifyTime;
169
170
        return $this;
171
    }
172
173
    /**
174
     * Get qualifyTime.
175
     *
176
     * @return DateTime
177
     */
178
    public function getQualifyTime()
179
    {
180
        return $this->qualifyTime;
181
    }
182
183
    /**
184
     * Set cId.
185
     *
186
     * @param int $cId
187
     *
188
     * @return CForumThreadQualify
189
     */
190
    public function setCId($cId)
191
    {
192
        $this->cId = $cId;
193
194
        return $this;
195
    }
196
197
    /**
198
     * Get cId.
199
     *
200
     * @return int
201
     */
202
    public function getCId()
203
    {
204
        return $this->cId;
205
    }
206
}
207