Passed
Push — master ( 727abb...ceefce )
by Yannick
07:55 queued 14s
created

CDropboxCategory::getCId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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 Doctrine\ORM\Mapping as ORM;
10
use Symfony\Component\Validator\Constraints as Assert;
11
12
/**
13
 * CDropboxCategory.
14
 */
15
#[ORM\Table(name: 'c_dropbox_category')]
16
#[ORM\Index(name: 'course', columns: ['c_id'])]
17
#[ORM\Index(name: 'session_id', columns: ['session_id'])]
18
#[ORM\Entity]
19
class CDropboxCategory
20
{
21
    #[ORM\Column(name: 'iid', type: 'integer')]
22
    #[ORM\Id]
23
    #[ORM\GeneratedValue]
24
    protected ?int $iid = null;
25
26
    #[ORM\Column(name: 'c_id', type: 'integer')]
27
    protected int $cId;
28
29
    #[ORM\Column(name: 'cat_id', type: 'integer')]
30
    protected int $catId;
31
32
    #[Assert\NotBlank]
33
    #[ORM\Column(name: 'title', type: 'text', nullable: false)]
34
    protected string $title;
35
36
    #[ORM\Column(name: 'received', type: 'boolean', nullable: false)]
37
    protected bool $received;
38
39
    #[ORM\Column(name: 'sent', type: 'boolean', nullable: false)]
40
    protected bool $sent;
41
42
    #[ORM\Column(name: 'user_id', type: 'integer', nullable: false)]
43
    protected int $userId;
44
45
    #[ORM\Column(name: 'session_id', type: 'integer', nullable: false)]
46
    protected int $sessionId;
47
48
    /**
49
     * Set title.
50
     *
51
     * @return CDropboxCategory
52
     */
53
    public function setTitle(string $title)
54
    {
55
        $this->title = $title;
56
57
        return $this;
58
    }
59
60
    /**
61
     * Get title.
62
     *
63
     * @return string
64
     */
65
    public function getTitle()
66
    {
67
        return $this->title;
68
    }
69
70
    /**
71
     * Set received.
72
     *
73
     * @return CDropboxCategory
74
     */
75
    public function setReceived(bool $received)
76
    {
77
        $this->received = $received;
78
79
        return $this;
80
    }
81
82
    /**
83
     * Get received.
84
     *
85
     * @return bool
86
     */
87
    public function getReceived()
88
    {
89
        return $this->received;
90
    }
91
92
    /**
93
     * Set sent.
94
     *
95
     * @return CDropboxCategory
96
     */
97
    public function setSent(bool $sent)
98
    {
99
        $this->sent = $sent;
100
101
        return $this;
102
    }
103
104
    /**
105
     * Get sent.
106
     *
107
     * @return bool
108
     */
109
    public function getSent()
110
    {
111
        return $this->sent;
112
    }
113
114
    /**
115
     * Set userId.
116
     *
117
     * @return CDropboxCategory
118
     */
119
    public function setUserId(int $userId)
120
    {
121
        $this->userId = $userId;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get userId.
128
     *
129
     * @return int
130
     */
131
    public function getUserId()
132
    {
133
        return $this->userId;
134
    }
135
136
    /**
137
     * Set sessionId.
138
     *
139
     * @return CDropboxCategory
140
     */
141
    public function setSessionId(int $sessionId)
142
    {
143
        $this->sessionId = $sessionId;
144
145
        return $this;
146
    }
147
148
    /**
149
     * Get sessionId.
150
     *
151
     * @return int
152
     */
153
    public function getSessionId()
154
    {
155
        return $this->sessionId;
156
    }
157
158
    /**
159
     * Set catId.
160
     *
161
     * @return CDropboxCategory
162
     */
163
    public function setCatId(int $catId)
164
    {
165
        $this->catId = $catId;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get catId.
172
     *
173
     * @return int
174
     */
175
    public function getCatId()
176
    {
177
        return $this->catId;
178
    }
179
180
    /**
181
     * Set cId.
182
     *
183
     * @return CDropboxCategory
184
     */
185
    public function setCId(int $cId)
186
    {
187
        $this->cId = $cId;
188
189
        return $this;
190
    }
191
192
    /**
193
     * Get cId.
194
     *
195
     * @return int
196
     */
197
    public function getCId()
198
    {
199
        return $this->cId;
200
    }
201
}
202