Completed
Push — master ( 2515cc...e15afb )
by Julito
96:19 queued 29:01
created

GradebookCertificate::setDownloadedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * GradebookCertificate
10
 *
11
 * @ORM\Table(
12
 *     name="gradebook_certificate",
13
 *     indexes={
14
 *      @ORM\Index(name="idx_gradebook_certificate_category_id", columns={"cat_id"}),
15
 *      @ORM\Index(name="idx_gradebook_certificate_user_id", columns={"user_id"}),
16
 *      @ORM\Index(name="idx_gradebook_certificate_category_id_user_id", columns={"cat_id", "user_id"})}
17
 * )
18
 * @ORM\Entity
19
 */
20
class GradebookCertificate
21
{
22
    /**
23
     * @var integer
24
     *
25
     * @ORM\Column(name="id", type="bigint")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    private $id;
30
31
    /**
32
     * @var integer
33
     *
34
     * @ORM\Column(name="cat_id", type="integer", nullable=false)
35
     */
36
    private $catId;
37
38
    /**
39
     * @var integer
40
     *
41
     * @ORM\Column(name="user_id", type="integer", nullable=false)
42
     */
43
    private $userId;
44
45
    /**
46
     * @var float
47
     *
48
     * @ORM\Column(name="score_certificate", type="float", precision=10, scale=0, nullable=false)
49
     */
50
    private $scoreCertificate;
51
52
    /**
53
     * @var \DateTime
54
     *
55
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
56
     */
57
    private $createdAt;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="path_certificate", type="text", nullable=true)
63
     */
64
    private $pathCertificate;
65
66
      /**
67
     * @var \DateTime
68
     *
69
     * @ORM\Column(name="downloaded_at", type="datetime", nullable=true)
70
     */
71
    private $downloadedAt;
72
73
    /**
74
     * Set catId
75
     *
76
     * @param integer $catId
77
     * @return GradebookCertificate
78
     */
79
    public function setCatId($catId)
80
    {
81
        $this->catId = $catId;
82
83
        return $this;
84
    }
85
86
    /**
87
     * Get catId
88
     *
89
     * @return integer
90
     */
91
    public function getCatId()
92
    {
93
        return $this->catId;
94
    }
95
96
    /**
97
     * Set userId
98
     *
99
     * @param integer $userId
100
     * @return GradebookCertificate
101
     */
102
    public function setUserId($userId)
103
    {
104
        $this->userId = $userId;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get userId
111
     *
112
     * @return integer
113
     */
114
    public function getUserId()
115
    {
116
        return $this->userId;
117
    }
118
119
    /**
120
     * Set scoreCertificate
121
     *
122
     * @param float $scoreCertificate
123
     * @return GradebookCertificate
124
     */
125
    public function setScoreCertificate($scoreCertificate)
126
    {
127
        $this->scoreCertificate = $scoreCertificate;
128
129
        return $this;
130
    }
131
132
    /**
133
     * Get scoreCertificate
134
     *
135
     * @return float
136
     */
137
    public function getScoreCertificate()
138
    {
139
        return $this->scoreCertificate;
140
    }
141
142
    /**
143
     * Set createdAt
144
     *
145
     * @param \DateTime $createdAt
146
     * @return GradebookCertificate
147
     */
148
    public function setCreatedAt($createdAt)
149
    {
150
        $this->createdAt = $createdAt;
151
152
        return $this;
153
    }
154
155
    /**
156
     * Get createdAt
157
     *
158
     * @return \DateTime
159
     */
160
    public function getCreatedAt()
161
    {
162
        return $this->createdAt;
163
    }
164
165
    /**
166
     * Set pathCertificate
167
     *
168
     * @param string $pathCertificate
169
     * @return GradebookCertificate
170
     */
171
    public function setPathCertificate($pathCertificate)
172
    {
173
        $this->pathCertificate = $pathCertificate;
174
175
        return $this;
176
    }
177
178
    /**
179
     * Get pathCertificate
180
     *
181
     * @return string
182
     */
183
    public function getPathCertificate()
184
    {
185
        return $this->pathCertificate;
186
    }
187
188
    /**
189
     * Get id
190
     *
191
     * @return integer
192
     */
193
    public function getId()
194
    {
195
        return $this->id;
196
    }
197
198
    /**
199
     * @return \DateTime
200
     */
201
    public function getDownloadedAt(): \DateTime
202
    {
203
        return $this->downloadedAt;
204
    }
205
206
    /**
207
     * @param \DateTime $downloadedAt
208
     * @return GradebookCertificate
209
     */
210
    public function setDownloadedAt(\DateTime $downloadedAt): GradebookCertificate
211
    {
212
        $this->downloadedAt = $downloadedAt;
213
214
        return $this;
215
    }
216
}
217