Completed
Pull Request — master (#3464)
by Julito
14:18 queued 01:15
created

CForumMailcue::setUser()   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
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use Chamilo\CoreBundle\Entity\User;
9
10
/**
11
 * CForumMailcue.
12
 *
13
 * @ORM\Table(
14
 *  name="c_forum_mailcue",
15
 *  indexes={
16
 *      @ORM\Index(name="course", columns={"c_id"}),
17
 *      @ORM\Index(name="thread", columns={"thread_id"}),
18
 *      @ORM\Index(name="user", columns={"user_id"}),
19
 *      @ORM\Index(name="post", columns={"post_id"})
20
 *  }
21
 * )
22
 * @ORM\Entity
23
 */
24
class CForumMailcue
25
{
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(name="iid", type="integer")
30
     * @ORM\Id
31
     * @ORM\GeneratedValue
32
     */
33
    protected $iid;
34
35
    /**
36
     * @var int
37
     *
38
     * @ORM\Column(name="c_id", type="integer")
39
     */
40
    protected $cId;
41
42
    /**
43
     * @var int
44
     *
45
     * @ORM\Column(name="thread_id", type="integer")
46
     */
47
    protected $threadId;
48
49
    /**
50
     * @var User
51
     * @ORM\ManyToOne (
52
     *    targetEntity="Chamilo\CoreBundle\Entity\User",
53
     *    inversedBy="cForumMailcues"
54
     * )
55
     * @ORM\JoinColumn(
56
     *    name="user_id",
57
     *    referencedColumnName="id",
58
     *    onDelete="CASCADE"
59
     * )
60
     */
61
    protected $user;
62
63
    /**
64
     * Get user.
65
     *
66
     */
67
    public function getUser(): User
68
    {
69
        return $this->user;
70
    }
71
72
    /**
73
     * Set user.
74
     *
75
     */
76
    public function setUser($user)
77
    {
78
        $this->user = $user;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @var int
85
     *
86
     * @ORM\Column(name="post_id", type="integer")
87
     */
88
    protected $postId;
89
90
    /**
91
     * Set cId.
92
     *
93
     * @param int $cId
94
     *
95
     * @return CForumMailcue
96
     */
97
    public function setCId($cId)
98
    {
99
        $this->cId = $cId;
100
101
        return $this;
102
    }
103
104
    /**
105
     * Get cId.
106
     *
107
     * @return int
108
     */
109
    public function getCId()
110
    {
111
        return $this->cId;
112
    }
113
114
    /**
115
     * Set threadId.
116
     *
117
     * @param int $threadId
118
     *
119
     * @return CForumMailcue
120
     */
121
    public function setThreadId($threadId)
122
    {
123
        $this->threadId = $threadId;
124
125
        return $this;
126
    }
127
128
    /**
129
     * Get threadId.
130
     *
131
     * @return int
132
     */
133
    public function getThreadId()
134
    {
135
        return $this->threadId;
136
    }
137
138
    /**
139
     * Set postId.
140
     *
141
     * @param int $postId
142
     *
143
     * @return CForumMailcue
144
     */
145
    public function setPostId($postId)
146
    {
147
        $this->postId = $postId;
148
149
        return $this;
150
    }
151
152
    /**
153
     * Get postId.
154
     *
155
     * @return int
156
     */
157
    public function getPostId()
158
    {
159
        return $this->postId;
160
    }
161
}
162