Passed
Pull Request — master (#4323)
by Yannick
07:17
created

TrackELastaccess::setCId()   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\CoreBundle\Entity;
8
9
use DateTime;
10
use Doctrine\ORM\Mapping as ORM;
11
12
/**
13
 * TrackELastaccess.
14
 *
15
 * @ORM\Table(name="track_e_lastaccess", indexes={
16
 *     @ORM\Index(name="access_user_id", columns={"access_user_id"}),
17
 *     @ORM\Index(name="access_c_id", columns={"c_id"}),
18
 *     @ORM\Index(name="session_id", columns={"session_id"})
19
 * })
20
 * @ORM\Entity
21
 */
22
class TrackELastaccess
23
{
24
    /**
25
     * @ORM\Column(name="access_user_id", type="integer", nullable=true)
26
     */
27
    protected int $accessUserId;
28
29
    /**
30
     * @ORM\Column(name="access_date", type="datetime", nullable=false)
31
     */
32
    protected DateTime $accessDate;
33
34
    /**
35
     * @ORM\Column(name="c_id", type="integer", nullable=false)
36
     */
37
    protected int $cId;
38
39
    /**
40
     * @ORM\Column(name="access_tool", type="string", length=30, nullable=true)
41
     */
42
    protected ?string $accessTool = null;
43
44
    /**
45
     * @ORM\Column(name="session_id", type="integer", nullable=true)
46
     */
47
    protected ?int $sessionId = null;
48
49
    /**
50
     * @ORM\Column(name="access_id", type="bigint")
51
     * @ORM\Id
52
     * @ORM\GeneratedValue(strategy="IDENTITY")
53
     */
54
    protected int $accessId;
55
56
    /**
57
     * Set accessUserId.
58
     *
59
     * @return TrackELastaccess
60
     */
61
    public function setAccessUserId(int $accessUserId)
62
    {
63
        $this->accessUserId = $accessUserId;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Get accessUserId.
70
     *
71
     * @return int
72
     */
73
    public function getAccessUserId()
74
    {
75
        return $this->accessUserId;
76
    }
77
78
    /**
79
     * Set accessDate.
80
     *
81
     * @return TrackELastaccess
82
     */
83
    public function setAccessDate(DateTime $accessDate)
84
    {
85
        $this->accessDate = $accessDate;
86
87
        return $this;
88
    }
89
90
    /**
91
     * Get accessDate.
92
     *
93
     * @return DateTime
94
     */
95
    public function getAccessDate()
96
    {
97
        return $this->accessDate;
98
    }
99
100
    /**
101
     * Set cId.
102
     *
103
     * @return TrackELastaccess
104
     */
105
    public function setCId(int $cId)
106
    {
107
        $this->cId = $cId;
108
109
        return $this;
110
    }
111
112
    /**
113
     * Get cId.
114
     *
115
     * @return int
116
     */
117
    public function getCId()
118
    {
119
        return $this->cId;
120
    }
121
122
    /**
123
     * Set accessTool.
124
     *
125
     * @return TrackELastaccess
126
     */
127
    public function setAccessTool(string $accessTool)
128
    {
129
        $this->accessTool = $accessTool;
130
131
        return $this;
132
    }
133
134
    /**
135
     * Get accessTool.
136
     *
137
     * @return string
138
     */
139
    public function getAccessTool()
140
    {
141
        return $this->accessTool;
142
    }
143
144
    /**
145
     * Set sessionId.
146
     *
147
     * @return TrackELastaccess
148
     */
149
    public function setSessionId(int $sessionId)
150
    {
151
        $this->sessionId = $sessionId;
152
153
        return $this;
154
    }
155
156
    /**
157
     * Get sessionId.
158
     *
159
     * @return int
160
     */
161
    public function getSessionId()
162
    {
163
        return $this->sessionId;
164
    }
165
166
    /**
167
     * Get accessId.
168
     *
169
     * @return int
170
     */
171
    public function getAccessId()
172
    {
173
        return $this->accessId;
174
    }
175
}
176