Passed
Push — master ( 212333...0998b3 )
by Yannick
07:23
created

TrackEDownloads::setDownDate()   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
 * TrackEDownloads.
14
 *
15
 * @ORM\Table(name="track_e_downloads", indexes={
16
 *     @ORM\Index(name="idx_ted_user_id", columns={"down_user_id"}),
17
 *     @ORM\Index(name="idx_ted_c_id", columns={"c_id"}),
18
 *     @ORM\Index(name="session_id", columns={"session_id"})
19
 * })
20
 * @ORM\Entity
21
 */
22
class TrackEDownloads
23
{
24
    /**
25
     * @ORM\Column(name="down_id", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    protected int $downId;
30
31
    /**
32
     * @ORM\Column(name="down_user_id", type="integer", nullable=true)
33
     */
34
    protected ?int $downUserId = null;
35
36
    /**
37
     * @ORM\Column(name="down_date", type="datetime", nullable=false)
38
     */
39
    protected DateTime $downDate;
40
41
    /**
42
     * @ORM\Column(name="c_id", type="integer", nullable=false)
43
     */
44
    protected int $cId;
45
46
    /**
47
     * @ORM\Column(name="down_doc_path", type="string", length=255, nullable=false)
48
     */
49
    protected string $downDocPath;
50
51
    /**
52
     * @ORM\Column(name="session_id", type="integer", nullable=false)
53
     */
54
    protected int $sessionId;
55
56
    /**
57
     * Set downUserId.
58
     *
59
     * @return TrackEDownloads
60
     */
61
    public function setDownUserId(int $downUserId)
62
    {
63
        $this->downUserId = $downUserId;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Get downUserId.
70
     *
71
     * @return int
72
     */
73
    public function getDownUserId()
74
    {
75
        return $this->downUserId;
76
    }
77
78
    /**
79
     * Set downDate.
80
     *
81
     * @return TrackEDownloads
82
     */
83
    public function setDownDate(DateTime $downDate)
84
    {
85
        $this->downDate = $downDate;
86
87
        return $this;
88
    }
89
90
    /**
91
     * Get downDate.
92
     *
93
     * @return DateTime
94
     */
95
    public function getDownDate()
96
    {
97
        return $this->downDate;
98
    }
99
100
    /**
101
     * Set cId.
102
     *
103
     * @return TrackEDownloads
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 downDocPath.
124
     *
125
     * @return TrackEDownloads
126
     */
127
    public function setDownDocPath(string $downDocPath)
128
    {
129
        $this->downDocPath = $downDocPath;
130
131
        return $this;
132
    }
133
134
    /**
135
     * Get downDocPath.
136
     *
137
     * @return string
138
     */
139
    public function getDownDocPath()
140
    {
141
        return $this->downDocPath;
142
    }
143
144
    /**
145
     * Set sessionId.
146
     *
147
     * @return TrackEDownloads
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 downId.
168
     *
169
     * @return int
170
     */
171
    public function getDownId()
172
    {
173
        return $this->downId;
174
    }
175
}
176